Bug 4871 – ICE(mtype.c 875) const alias

Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-09-14T22:47:00Z
Last change time
2010-11-07T12:29:29Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
cruxic

Comments

Comment #0 by cruxic — 2010-09-14T22:47:30Z
Running dmd v2.048 the compiler seems to crash on code like this: alias ubyte foo; alias const foo * const_fooP; void main() { } The error is: dmd: mtype.c:875: void Type::check(): Assertion `tn->mod & 4 || tn->mod & 1' failed. Aborted I'm new to D so this might be invalid syntax but it shouldn't crash the compiler.
Comment #1 by clugdbug — 2010-09-20T08:13:35Z
(In reply to comment #0) > I'm new to D so this might be invalid syntax but it shouldn't crash the > compiler. Yes. Thanks for the excellent reduced test case.
Comment #2 by bugzilla — 2010-11-07T12:29:29Z
*** This issue has been marked as a duplicate of issue 4434 ***