digitalmars.D.bugs - [Issue 7390] New: Problem in generating switch cases with a static foreach
- d-bugmail puremagic.com (45/45) Jan 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7390
- d-bugmail puremagic.com (13/13) Mar 18 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7390
- d-bugmail puremagic.com (7/7) Mar 18 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7390
- d-bugmail puremagic.com (12/12) Mar 18 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7390
http://d.puremagic.com/issues/show_bug.cgi?id=7390 Summary: Problem in generating switch cases with a static foreach Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2012-01-28 07:06:11 PST --- This seems related to bug 6518 Generating switch cases with a static foreach gives some problems still (DMD 2.058head): import std.typetuple: TypeTuple; void main() { char c; switch (c) { // OK case 'z': break; case 'x': break; case 'y': break; default: break; } alias TypeTuple!('x', 'y') xy; switch (c) { // OK foreach (X; xy) { case X: break; } default: break; } switch (c) { case 'z': break; foreach (X; xy) { case X: break; } default: break; // Error: switch case fallthrough } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 28 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7390 dawg dawgfoto.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dawg dawgfoto.de Resolution| |DUPLICATE --- Comment #1 from dawg dawgfoto.de 2012-03-18 10:15:00 PDT --- This seems to be fixed with Bug 6518. *** This issue has been marked as a duplicate of issue 6518 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 18 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7390 --- Comment #2 from bearophile_hugs eml.cc 2012-03-18 12:43:43 PDT --- I am seeing the case fallthrough error still, on Windows. This bug seems not fixed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 18 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7390 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | --- Comment #3 from bearophile_hugs eml.cc 2012-03-18 12:55:30 PDT --- To see the wrong error message you need to compile with -w or -wi (confirmed on x86-64 linux too by Zor). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 18 2012