[Issue 18688] Constructors shouldn't have implicit super call if it throws
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 4 01:17:19 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18688
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
Severity|enhancement |normal
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
The real problem is that delegating constructor calls are not allowed after
labels, and the case and default statements are labels. The compiler should
detect those.
The trouble with labels is the primitive flow analysis done by the compiler
cannot handle them. So they are just disallowed. Maybe a future enhancement
could cover it.
--
More information about the Digitalmars-d-bugs
mailing list