[Issue 13819] New: Internal error: backend\cg87.c 1495 with mixin, delegate and -O
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Dec 4 15:26:10 PST 2014
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: nobody at puremagic.com
Reporter: aliloko at gmail.com
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
--
More information about the Digitalmars-d-bugs
mailing list