Bug 18936 – Internal error: dmd/backend/cgxmm.c 684

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-03T05:44:35Z
Last change time
2018-06-05T09:56:53Z
Keywords
ice-on-valid-code
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2018-06-03T05:44:35Z
// REQUIRED_ARGS: -fPIC -O -release -inline -m64 -betterC // produces assert failure cgxmm.c line 684 import core.stdc.math; struct S { double re, im; static S sqrtcx(S* z) { S c; real x,y,w,r; { x = fabs(z.re); y = fabs(z.im); if (z.re >= 0) { c.im = (z.im >= 0) ? w : -w; c.re = z.im / (c.im + c.im); } } return c; } } Test case: https://github.com/dlang/dmd/pull/8326
Comment #1 by bugzilla — 2018-06-05T07:57:31Z
Comment #2 by github-bugzilla — 2018-06-05T09:56:51Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d2884aa5a06f59ec6f4c4ae48ef864037c4d238f fix Issue 18936 - Internal error: dmd/backend/cgxmm.c 684 https://github.com/dlang/dmd/commit/6a210604e16ad1fc64406abec99c5d1b74072b9b Merge pull request #8326 from WalterBright/cgxmm684 fix Issue 18936 - Internal error: dmd/backend/cgxmm.c 684 merged-on-behalf-of: Walter Bright <[email protected]>