D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5119 - [ICE] with null initialization of a pointer to undefined identifier
Summary: [ICE] with null initialization of a pointer to undefined identifier
Status: RESOLVED DUPLICATE of issue 4830
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2010-10-25 17:00 UTC by bearophile_hugs
Modified: 2010-10-30 06:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2010-10-25 17:00:04 UTC
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 Don 2010-10-30 06:38:53 UTC

*** This issue has been marked as a duplicate of issue 4830 ***