www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2576] New: Assertion failure in mtype.c - forward reference of aliased-type string constant

reply d-bugmail puremagic.com writes:
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


-- 
Jan 10 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2576






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: -------
May 19 2009
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Aug 27 2009