Bug 8454 – [ICE] (backend\cg87.c 3497) with cdouble and sqrt
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-07-27T11:06:00Z
Last change time
2012-07-27T21:50:41Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2012-07-27T11:06:23Z
import std.math: sqrt;
void foo(cdouble m) {}
void main() {
foo(0 - sqrt(1.0) * 1i);
}
DMD 2.060beta gives me (compiled with -O):
Internal error: backend\cg87.c 3497
While it compiles with DMD 2.059, without -O. So I don't know if this is a regression.
Comment #1 by github-bugzilla — 2012-07-27T21:49:10Z