Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 20, 2013 [Issue 9358] New: Compiler creates duplicate switch cases after an error | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9358 Summary: Compiler creates duplicate switch cases after an error Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic, pull Severity: normal Priority: P2 Component: DMD AssignedTo: andrej.mitrovich@gmail.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-20 10:11:22 PST --- void main() { double x; switch (x) { case 1: break; case 2: break; default: } } test.d(6): Error: 'x' must be of integral or string type, it is a double test.d(8): Error: case must be a string or an integral constant, not 1 test.d(9): Error: case must be a string or an integral constant, not 2 test.d(9): Error: duplicate case 0 in switch statement The last error message shouldn't appear. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 20, 2013 [Issue 9358] Compiler creates duplicate switch cases after an error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9358 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-20 10:16:34 PST --- https://github.com/D-Programming-Language/dmd/pull/1521 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 21, 2013 [Issue 9358] Compiler creates duplicate switch cases after an error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9358 --- Comment #2 from github-bugzilla@puremagic.com 2013-01-20 16:49:10 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f8b994352501e50dca6b9a064be3462d6ac343cd Fixes Issue 9358 - Compiler creates duplicate switch cases on error. https://github.com/D-Programming-Language/dmd/commit/3e3d8f8fdc478c80190be8a25d1e7a6ea1d9c79d Merge pull request #1521 from AndrejMitrovic/Fix9358 Issue 9358 - Compiler creates duplicate switch cases on error -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 21, 2013 [Issue 9358] Compiler creates duplicate switch cases after an error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9358 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation