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: bugzi...@digitalmars.com
        ReportedBy: s...@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


-- 

Reply via email to