[Issue 6095] switch executes code it shouldn't
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 5 09:05:57 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=6095
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://issues.dlang.org/sh
| |ow_bug.cgi?id=14532
--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to Brad Roberts from comment #0)
> // should be 0, there's no flow that should involve a being instantiated
> // or destroyed
> A51_a = 0; { if (1) switch(1) { A51 a; default: } } assert(A51_a == 1);
This is now a deprecation (since https://github.com/dlang/dmd/pull/5869).
--
More information about the Digitalmars-d-bugs
mailing list