[Issue 2576] New: Assertion failure in mtype.c - forward reference of aliased-type string constant
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 10 14:41:12 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2576
Summary: Assertion failure in mtype.c - forward reference of
aliased-type string constant
Product: D
Version: 2.023
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: smjg at iname.com
OtherBugsDependingO 340
nThis:
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
--
More information about the Digitalmars-d-bugs
mailing list