www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 83] New: ICE: TypeStruct::toCBuffer2

http://bugzilla.gdcproject.org/show_bug.cgi?id=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 gdcproject.org
        ReportedBy: ibuclaw 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.
Nov 06 2013