[Issue 1947] ICE (Assertion failure: '0' on statement.c:123) with null mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 27 03:04:02 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1947


clugdbug at yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at 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.                      |




------- Comment #1 from clugdbug at yahoo.com.au  2008-05-27 05:04 -------
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.


-- 



More information about the Digitalmars-d-bugs mailing list