[Issue 12057] [ICE], backend/cg87.c 925

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 18 08:26:04 PDT 2014


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

--- Comment #4 from hsteoh at quickfur.ath.cx ---
Minimal failing test case:
-----
// Compile with: dmd -O
bool prop(real x) { return false; }
double f(real) { return double.init; }
void main()
{
    real fc = f(real.init);
    if (fc == 0 || fc.prop) {}
}
-----

The ICE goes away if compiling without -O. Looks like an optimizer bug.

--


More information about the Digitalmars-d-bugs mailing list