www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 87] New: GDC always ICEs on Windows (also for Windows->???

http://bugzilla.gdcproject.org/show_bug.cgi?id=87

             Bug #: 87
           Summary: GDC always ICEs on Windows (also for Windows->???
                    Cross compilers)
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: All
        OS/Version: MinGW
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: johannespfau gmail.com


The problem is this line in d-decls.cc:

snprintf (CONST_CAST (char *, s->Sident), sz, "_D%s%zu%s%s",

The %z format specifier is not supported by the MS runtime which is used by
MinGW. There are two possible solutions:

1: Use __mingw_snprintf on windows
2: Use the MS equivalent for "%z" on Windows: "%I" (%Iu for %zu)

See also: http://msdn.microsoft.com/en-us/library/tcxf1dw6.aspx

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
Dec 27 2013