[Issue 1931] dmd flow analysis error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 23 04:10:48 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1931
wbaxter at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|regression |enhancement
------- Comment #4 from wbaxter at gmail.com 2008-04-23 06:10 -------
(In reply to comment #3)
> why not issue a compile error?
It does in very simple cases, like if there is only one code path.
: noreturn.d(18): function noreturn.func expected to return a value of type int
So what you are asking for is to improve the escape analysis to cover more
cases. I think that's a hard problem in general.
Also "regression" means something used to work in a previous release but now
doesn't. But I don't think that's the case here. Did this ever work? If not
this should technically be marked as "enhancement".
--
More information about the Digitalmars-d-bugs
mailing list