Bug 20349 – [REG2.087] ICE with sqrt

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-11-03T09:23:32Z
Last change time
2019-12-12T06:44:52Z
Keywords
ice, pull
Assigned to
No Owner
Creator
Vladimir Panteleev

Comments

Comment #0 by dlang-bugzilla — 2019-11-03T09:23:32Z
////////// 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
Comment #1 by dlang-bot — 2019-12-09T09:57:56Z
@WalterBright created dlang/dmd pull request #10652 "fix Issue 20349 - [REG2.087] ICE with sqrt" fixing this issue: - fix Issue 20349 - [REG2.087] ICE with sqrt https://github.com/dlang/dmd/pull/10652
Comment #2 by dlang-bot — 2019-12-12T06:44:52Z
dlang/dmd pull request #10652 "fix Issue 20349 - [REG2.087] ICE with sqrt" was merged into stable: - 294a257d30f891c7c43260fb68fb8ef13d937d5e by Walter Bright: fix Issue 20349 - [REG2.087] ICE with sqrt https://github.com/dlang/dmd/pull/10652