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

          Issue ID: 13819
           Summary: Internal error: backend\cg87.c 1495 with mixin,
                    delegate and -O
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: [email protected]
          Reporter: [email protected]

With DMD 2.066.1, the following program crash DMD with -O.


------------- reduced.d ---------------

void heh()
{
    enum fun = "x % 2 != 0";

    (int a)
    {
        double x = a;
        mixin("return " ~ fun ~ ";");
    }( 4 );
}

---------------------------------------

$ dmd -O reduced.d
Internal error: backend\cg87.c 1495

--

Reply via email to