digitalmars.D.bugs - [Issue 10121] New: Declarations before first case level in switch statement are allowed
- d-bugmail puremagic.com (30/30) May 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10121
- d-bugmail puremagic.com (10/10) May 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10121
- d-bugmail puremagic.com (13/14) May 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10121
http://d.puremagic.com/issues/show_bug.cgi?id=10121 Summary: Declarations before first case level in switch statement are allowed Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Keywords: accepts-invalid, wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: maxim maxim-fomin.ru --- extern(C) int printf(const char*, ...); void main() { switch(0) { int a = 4; // if immutable, prints 4 case 0: printf("%d\n", a); //prints 0 } } After the switch there is jump to zero case without proper initialization of 'a'. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10121 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc Dupe of Issue 3820 ? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10121 Maxim Fomin <maxim maxim-fomin.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE ---Dupe of Issue 3820 ?Yes. *** This issue has been marked as a duplicate of issue 3820 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 19 2013