Thread overview
[Issue 2576] New: Assertion failure in mtype.c - forward reference of aliased-type string constant
Jan 10, 2009
d-bugmail
[Issue 2576] ICE(mtype.c, MODconst) - forward reference of aliased-type string constant
May 19, 2009
Don
Aug 27, 2009
Stewart Gordon
January 10, 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@digitalmars.com
        ReportedBy: smjg@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


-- 

May 19, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2576





--- Comment #1 from Don <clugdbug@yahoo.com.au>  2009-05-19 01:27:05 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 27, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2576


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------