www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21514] New: [ICE] cod1.d:4015: Assertion `retregs ||

https://issues.dlang.org/show_bug.cgi?id=21514

          Issue ID: 21514
           Summary: [ICE] cod1.d:4015: Assertion `retregs || !*pretregs'
                    failed with -m32
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org


extern(C++) cdouble czero() { return 0+0i; }
extern(C++) creal czerol() { return 0+0Li; }

void main()
{
    auto a = czero();
    auto b = czerol();
}

--
Dec 29 2020