digitalmars.D.bugs - [Issue 6326] New: [CTFE] ICE on cross-module call of function checking CTFE-ability of function with invalid switch statement
- d-bugmail puremagic.com (30/30) Jul 15 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6326
- d-bugmail puremagic.com (12/12) Jul 26 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6326
http://d.puremagic.com/issues/show_bug.cgi?id=6326 Summary: [CTFE] ICE on cross-module call of function checking CTFE-ability of function with invalid switch statement Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: timon.gehr gmx.ch --- Comment #0 from timon.gehr gmx.ch 2011-07-15 10:40:19 PDT --- Tested with DMD 2.053. Took me some time to reduce this: A.d: import B; void main(){foo();} B.d int bar(){switch(0){};} // any switch statement that does not compile will do. auto foo(){static if(__traits(compiles,{enum x=bar();})){}} This code provokes an internal compiler error: $ dmd A B dmd: statement.c:2758: virtual Statement* SwitchStatement::semantic(Scope*): Assertion `!cases' failed. Aborted -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 15 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6326 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug yahoo.com.au Resolution| |DUPLICATE --- Comment #1 from Don <clugdbug yahoo.com.au> 2011-07-26 21:11:27 PDT --- *** This issue has been marked as a duplicate of issue 5453 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 26 2011