Bug 4830 – Regression(2.038) ICE mtype.c:879: void Type::check(): Assertion `tn->mod == 4' failed

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-09-06T11:41:00Z
Last change time
2010-11-07T12:28:56Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2010-09-06T11:41:29Z
the code: alias immutable string[] strings; strings a = [ ]; strings b = [ ]; dmd 2.048
Comment #1 by clugdbug — 2010-09-06T12:00:01Z
And it's a regression. Worked in 2.037, ICE in 2.038.
Comment #2 by clugdbug — 2010-09-29T00:25:22Z
This was caused by adding this line to AliasDeclaration::semantic() in svn 307 (which was fixing bug 3641 alias shared T U does not work) + type = type->addStorageClass(storage_class); if (storage_class & (STCref | STCnothrow | STCpure)) { // For 'ref' to be attached to function types, and picked
Comment #3 by clugdbug — 2010-10-30T06:38:53Z
*** Issue 5119 has been marked as a duplicate of this issue. ***
Comment #4 by bugzilla — 2010-11-07T12:28:56Z
*** This issue has been marked as a duplicate of issue 4434 ***