[Issue 20349] New: [REG2.087] ICE with sqrt
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 3 09:23:32 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20349
Issue ID: 20349
Summary: [REG2.087] ICE with sqrt
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: ice
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dlang-bugzilla at thecybershadow.net
////////// test.d //////////
import core.math : sqrt;
double f(double a, int b)
{
return sqrt(-a / b) / b;
}
////////////////////////////
2.087.0 and newer throw a "illegal hardware instruction", or, in debug dmd
builds, "dmd/backend/cgcod.d:2626: Assertion `0' failed."
Introduced in https://github.com/dlang/dmd/pull/9905
--
More information about the Digitalmars-d-bugs
mailing list