[Bug 87] New: GDC always ICEs on Windows (also for Windows->??? Cross compilers)

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Fri Dec 27 11:57:03 PST 2013


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 at gdcproject.org
        ReportedBy: johannespfau at 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.


More information about the D.gnu mailing list