July 05, 2017 [Issue 6095] switch executes code it shouldn't | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=6095 Vladimir Panteleev <dlang-bugzilla@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@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). -- |
December 17, 2022 [Issue 6095] switch executes code it shouldn't | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=6095 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P3 -- |
Copyright © 1999-2021 by the D Language Foundation