8454 – [ICE] (backend\cg87.c 3497) with cdouble and sqrt

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8454 - [ICE] (backend\cg87.c 3497) with cdouble and sqrt
Summary: [ICE] (backend\cg87.c 3497) with cdouble and sqrt
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
Reported: 2012年07月27日 11:06 UTC by bearophile_hugs
Modified: 2012年07月27日 21:50 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2012年07月27日 11:06:23 UTC
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 github-bugzilla 2012年07月27日 21:49:10 UTC
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 github-bugzilla 2012年07月27日 21:49:31 UTC
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 Walter Bright 2012年07月27日 21:50:41 UTC
Not a regression, but fixed it anyway.


AltStyle によって変換されたページ (->オリジナル) /