Bug 6845 – ICE(mtype.c) after error in constructor parameters
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-10-23T11:14:00Z
Last change time
2015-06-09T05:11:53Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
hoganmeier
Comments
Comment #0 by hoganmeier — 2011-10-23T11:14:33Z
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 by hoganmeier — 2011-10-23T11:15:57Z
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.