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
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/eae1c92f51d8f5edec799e1621953ebdc55be0bf fix Issue 8454 - [ICE] (backend\cg87.c 3497) with cdouble and sqrt
Comment #2 by github-bugzilla — 2012-07-27T21:49:31Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/784764906149cdb053be99f1fd290b5c6dc6fd7e fix Issue 8454 - [ICE] (backend\cg87.c 3497) with cdouble and sqrt
Comment #3 by bugzilla — 2012-07-27T21:50:41Z
Not a regression, but fixed it anyway.