D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4980 - ICE(mtype.c) on unknown type in a shared class/struct
Summary: ICE(mtype.c) on unknown type in a shared class/struct
Status: RESOLVED DUPLICATE of issue 4434
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2010-10-02 21:04 UTC by Koroskin Denis
Modified: 2010-11-07 12:30 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Koroskin Denis 2010-10-02 21:04:22 UTC
shared class Foo
{
	Bar* bar;
}

test.d(3): Error: identifier 'Bar' is not defined
test.d(3): Error: Bar is used as a type
Assertion failure: 'tn->mod & MODimmutable || tn->mod & MODshared' on line 883 in file 'mtype.c'

abnormal program termination
Comment 1 Walter Bright 2010-11-07 12:30:30 UTC

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