digitalmars.D.bugs - [Issue 9129] New: Definite return analysis fails for nested case statements
- d-bugmail puremagic.com (31/31) Dec 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9129
http://d.puremagic.com/issues/show_bug.cgi?id=9129 Summary: Definite return analysis fails for nested case statements Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: timon.gehr gmx.ch --- Comment #0 from timon.gehr gmx.ch 2012-12-09 12:46:01 PST --- DMD 2.060: enum E{ v } template Seq(T...){ alias T Seq; } int foo(){ E e; final switch(e){ if(e) case E.v: return 0; } final switch(e) foreach(x;Seq!(E.v)) case x: return 0; } Error: function foo no return exp; or assert(0); at end of function The code should compile. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 09 2012