Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
October 11, 2014 [Issue 5713] Broken final switch on ints | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5713 --- Comment #14 from bearophile_hugs@eml.cc --- Another simple case worth supporting: void main() { foreach (immutable i; 0 .. 3) { final switch (i) { case 0: break; case 1: break; case 2: break; } } } -- |
August 09, 2020 [Issue 5713] Broken final switch on ints | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5713 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=5714, | |https://issues.dlang.org/sh | |ow_bug.cgi?id=6060 -- |
August 09, 2020 [Issue 5713] Broken final switch on ints | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5713 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #15 from Dlang Bot <dlang-bot@dlang.rocks> --- @WalterBright created dlang/dlang.org pull request #2841 "fix Issue 5713 - Broken final switch on ints" fixing this issue: - fix Issue 5713 - Broken final switch on ints https://github.com/dlang/dlang.org/pull/2841 -- |
August 09, 2020 [Issue 5713] Broken final switch on ints | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5713 --- Comment #16 from Walter Bright <bugzilla@digitalmars.com> --- What happens is the compiler inserts a default that throws an exception. This is compatible with what the spec says. I added a clarification to the spec. -- |
August 09, 2020 [Issue 5713] Broken final switch on ints | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5713 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|wrong-code | --- Comment #17 from Walter Bright <bugzilla@digitalmars.com> --- It is not an issue of wrong-code. -- |
February 05, 2021 [Issue 5713] Broken final switch on ints | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5713 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #18 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/dlang.org pull request #2841 "fix Issue 5713 - Broken final switch on ints" was merged into master: - 9455b02ee18d49a05af695ed91cfbed84366de64 by Walter Bright: fix Issue 5713 - Broken final switch on ints https://github.com/dlang/dlang.org/pull/2841 -- |
Copyright © 1999-2021 by the D Language Foundation