digitalmars.D.bugs - [Issue 7320] New: final switch on enum with backing type not statically checked
- d-bugmail puremagic.com (34/34) Jan 19 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7320
- d-bugmail puremagic.com (8/8) Jan 19 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7320
- d-bugmail puremagic.com (10/10) Jan 19 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7320
- d-bugmail puremagic.com (12/12) Jan 24 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7320
http://d.puremagic.com/issues/show_bug.cgi?id=7320 Summary: final switch on enum with backing type not statically checked Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: xtzgzorex gmail.com --- Comment #0 from Alex Rønne Petersen <xtzgzorex gmail.com> 2012-01-19 09:13:51 PST --- This builds: enum Test : ubyte { foo, bar, baz, } void main() { auto i = Test.bar; final switch (i) { case Test.foo: break; } } Remove the : ubyte and it doesn't. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 19 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7320 --- Comment #1 from Alex Rønne Petersen <xtzgzorex gmail.com> 2012-01-19 09:17:28 PST --- Andrej Mitrovic notes that if : int is specified as the backing type, the sample fails to build as expected. So, it seems as if any non-default backing type causes the bug. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 19 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7320 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc --- Comment #2 from bearophile_hugs eml.cc 2012-01-19 10:30:48 PST --- See also issue 5713 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 19 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7320 Denis <verylonglogin.reg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |verylonglogin.reg gmail.com Resolution| |DUPLICATE --- Comment #3 from Denis <verylonglogin.reg gmail.com> 2012-01-24 13:52:26 MSK --- *** This issue has been marked as a duplicate of issue 4517 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 24 2012