D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6845 - ICE(mtype.c) after error in constructor parameters
Summary: ICE(mtype.c) after error in constructor parameters
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2011-10-23 11:14 UTC by Trass3r
Modified: 2015-06-09 05:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Trass3r 2011-10-23 11:14:33 UTC
This is the DustMite reduction:

struct Bla
{
	this(objects)
	{
	}
}

Error: undefined identifier objects, did you mean import object?
_error_ 0x18d5830
ty = 35
dmd: mtype.c:145: virtual Type* Type::syntaxCopy(): Assertion `0' failed.
Comment 1 Trass3r 2011-10-23 11:15:57 UTC
This is more like the original problem:

struct Blub
{
//	alias int type;
}

struct Bla(T)
{
	this(T.type t) // doesn't happen with a normal method
	{
	}
}

alias Bla!Blub gg;

Error: no property 'type' for type 'Blub'
Error: T.type is used as a type
1: _error_ 0x1620830
ty = 35
dmd: mtype.c:145: virtual Type* Type::syntaxCopy(): Assertion `0' failed.
Comment 2 Trass3r 2011-12-12 18:19:17 UTC
Seems like this has been fixed in the meantime.