Bug 2576 – ICE(mtype.c, MODconst) - forward reference of aliased-type string constant

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-01-10T16:41:00Z
Last change time
2015-06-09T01:21:00Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
smjg
Blocks
340

Comments

Comment #0 by smjg — 2009-01-10T16:41:11Z
alias char TCHAR; const TCHAR[] READDATAPORT = ISAENUM ~ "\\ReadDataPort\\0"; const TCHAR[] ISAENUM = "ISAPnP"; ---------- Assertion failure: 'tn->mod & MODinvariant || tn->mod & MODconst' on line 734 in file 'mtype.c' ---------- Declaring the first constant as const char[] instead makes no difference, but the problem disappears if: - the second constant is declared as const char[] - the order is swapped - both are in a single declaration
Comment #1 by clugdbug — 2009-05-19T01:27:05Z
This was failing for me in 2.029, but it works for me in 2.030. I think it may have been fixed in 2.030.