Bug 5119 – [ICE] with null initialization of a pointer to undefined identifier
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-10-25T17:00:00Z
Last change time
2010-10-30T06:38:53Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2010-10-25T17:00:04Z
With this wrong program:
void main() {
Foo* p = null;
}
DMD 2.049 crashes and shows:
test.d(2): Error: identifier 'Foo' is not defined
test.d(2): Error: Foo is used as a type
Assertion failure: 'tn->mod == MODimmutable' on line 879 in file 'mtype.c'
Comment #1 by clugdbug — 2010-10-30T06:38:53Z
*** This issue has been marked as a duplicate of issue 4830 ***