https://issues.dlang.org/show_bug.cgi?id=18058
Maksim Fomin <m...@protonmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal --- Comment #8 from Maksim Fomin <m...@protonmail.com> --- (In reply to Shachar Shemesh from comment #7) > (In reply to Maksim Fomin from comment #6) > > As mentioned previously, this is how D works. > > Quite so. That's why the label on this page reads "bug". I mean dmd works as intended and according to the spec. What you want is outside of current compiler optimization. This does not prevent you from requesting new behavior as an enhancement. --