[Bug 83] New: ICE: TypeStruct::toCBuffer2

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Wed Nov 6 08:39:20 PST 2013


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

             Bug #: 83
           Summary: ICE: TypeStruct::toCBuffer2
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw at gdcproject.org
        ReportedBy: ibuclaw at gdcproject.org


Testcase:
---
void doFormat(void delegate() myputc, void * argptr){
    assert(!(*cast(string*)argptr is null));
}

void sformat(string s, ...){
    void putc() { assert(s[0]==s[0]); }
    doFormat(&putc, _argptr);
}

void main(){
    sformat("xxx", "hi");
}



I guess this is because we cut corners building va_list[1] struct in
d-builtins.c

-- 
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