[Issue 2463] No line number in "statement is not reachable" warning
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 1 00:02:28 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2463
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #4 from Don <clugdbug at yahoo.com.au> 2010-02-01 00:02:27 PST ---
This is because statement.c, line 3515, at the end of
ReturnStatement::semantic()
sets loc to zero.
//----
if (exp && tbret->ty == Tvoid && !implicit0)
{
/* Replace:
* return exp;
* with:
* exp; return;
*/
Statement *s = new ExpStatement(loc, exp);
exp = NULL;
s = s->semantic(sc);
- loc = 0;
return new CompoundStatement(loc, s, this);
}
return this;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list