[Issue 5713] Broken final switch on ints

2021-02-05 Thread d-bugmail--- via Digitalmars-d-bugs
|--- |FIXED --- Comment #18 from Dlang Bot --- 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

[Issue 5713] Broken final switch on ints

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5713 Walter Bright changed: What|Removed |Added Keywords|wrong-code | --- Comment #17 from Walter Bright --- It i

[Issue 5713] Broken final switch on ints

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5713 --- Comment #16 from Walter Bright --- 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. --

[Issue 5713] Broken final switch on ints

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
--- @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 --

[Issue 5713] Broken final switch on ints

2020-08-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5713 Walter Bright changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 5713] Broken final switch on ints

2014-10-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5713 --- Comment #14 from bearophile_h...@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;

[Issue 5713] Broken final switch on ints

2012-12-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 --- Comment #13 from bearophile_h...@eml.cc 2012-12-26 04:13:35 PST --- See also this thread: http://forum.dlang.org/thread/hoczugrnzfbtvpnwj...@forum.dlang.org I think this code should be supported, because here the compiler is able to static

[Issue 5713] Broken final switch on ints

2012-12-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 bearophile_h...@eml.cc changed: What|Removed |Added Severity|enhancement |major --- Comment #12 from bea

[Issue 5713] Broken final switch on ints

2012-08-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 Rene changed: What|Removed |Added CC||renedu...@yahoo.com.br --- Comment #11 from Ren

[Issue 5713] Broken final switch on ints

2012-02-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 yebblies changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment #10 from yeb

[Issue 5713] Broken final switch on ints

2012-02-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 --- Comment #9 from bearophile_h...@eml.cc 2012-02-05 06:59:27 PST --- Turning bugs into enhancement requests is a good way to reduce bug count, but it doesn't address the problems. "enhancement" sounds like something that someone wants to add

[Issue 5713] Broken final switch on ints

2012-01-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 Denis changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Issue 5713] Broken final switch on ints

2012-01-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 Denis changed: What|Removed |Added CC||verylonglogin@gmail.com --- Comment #7 fro

[Issue 5713] Broken final switch on ints

2012-01-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 5713] Broken final switch on ints

2012-01-24 Thread d-bugmail
Issue 5713 - Broken final switch on ints -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 5713] Broken final switch on ints

2011-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 --- Comment #5 from bearophile_h...@eml.cc 2011-09-07 10:15:54 PDT --- An example from Timon Gehr, this gives no compilation errors, and prints nothing: import std.stdio; enum Mode { nothing, read, write } void main() { final switch (Mode.

[Issue 5713] Broken final switch on ints

2011-08-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 --- Comment #4 from bearophile_h...@eml.cc 2011-08-20 14:05:58 PDT --- This code is a reduction of real code, with small changes. It shows why this final switch brokeness makes final switch not as safe as advertised: void main() { enum Foo

[Issue 5713] Broken final switch on ints

2011-05-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 --- Comment #3 from bearophile_h...@eml.cc 2011-05-26 15:57:36 PDT --- See also bug 6060 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 5713] Broken final switch on ints

2011-03-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 --- Comment #2 from bearophile_h...@eml.cc 2011-03-07 16:17:51 PST --- See also bug 5714 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 5713] Broken final switch on ints

2011-03-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5713 Stewart Gordon changed: What|Removed |Added Keywords||spec, wrong-code CC|