digitalmars.D.bugs - [Issue 1947] New: ICE (Assertion failure: '0' on statement.c:123) with delegate literal and CTFE mixin.
- d-bugmail puremagic.com (23/23) Mar 26 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1947
- d-bugmail puremagic.com (36/36) May 27 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1947
- d-bugmail puremagic.com (10/10) Jun 18 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1947
- d-bugmail puremagic.com (5/5) Jun 18 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1947
- d-bugmail puremagic.com (4/4) Jun 22 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1947
http://d.puremagic.com/issues/show_bug.cgi?id=1947 Summary: ICE (Assertion failure: '0' on statement.c:123) with delegate literal and CTFE mixin. Product: D Version: 2.012 Platform: PC OS/Version: Windows Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: brunodomedeiros+bugz gmail.com string logm() { return ""; } void main() { ({ }); mixin(logm()); } --
Mar 26 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1947 clugdbug yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug yahoo.com.au Summary|ICE (Assertion failure: '0' |ICE (Assertion failure: '0' |on statement.c:123) with |on statement.c:123) with |delegate literal and CTFE |null mixin |mixin. | Renaming this from "ICE (Assertion failure: '0' on statement.c:123) with delegate literal and CTFE mixin." This has nothing to do with delegate literals. Here's a simpler test case: ---- void main() { mixin(null); } --- On DMD 1.030, this produces: bug.d(3): Error: argument to mixin must be a string, not (null) but on DMD 2, it ICEs with: bug.d(3): Error: argument to mixin must be a string, not (null) Statement::blockExit(009988FC) mixin(null); Assertion failure: '0' on line 123 in file 'statement.c' abnormal program termination Interestingly, ---- mixin(null); --- produces an error on *both* DMD1 and DMD2: attribute argument to mixin must be a string, not (null) which has a missing line number. So there are two different but related bugs, one on DMD 2 only, one which is common. --
May 27 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1947 clugdbug yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Seems to have been fixed in 2.015. --
Jun 18 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1947 Seems to have been fixed in 2.015. --
Jun 18 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1947 Fixed dmd 2.015 --
Jun 22 2008