[Issue 18936] New: Internal error: dmd/backend/cgxmm.c 684
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 3 05:44:35 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18936
Issue ID: 18936
Summary: Internal error: dmd/backend/cgxmm.c 684
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
// 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
--
More information about the Digitalmars-d-bugs
mailing list