[Issue 15206] ICE on optimized build, tym = x1d Internal error: backend\cgxmm.c 547
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 3 19:55:48 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=15206
John Colvin <john.loughran.colvin at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |john.loughran.colvin at gmail.
| |com
--- Comment #7 from John Colvin <john.loughran.colvin at gmail.com> ---
I found a different piece of code that triggers the same error:
% cat test.d:
alias A = Complex!double;
struct Complex(T)
{
double re, im;
Complex!double baz()
{
return Complex!double(re).blah;
}
ref Complex!double blah()
{
im = re;
return this;
}
}
% dmd -c -inline -O -m64 test.d
tym = x1d
Internal error: dmd/backend/cgxmm.c 684
Walter, I can produce the error for both this and the original example on both
macOS and linux (haven't tried windows). -m32 avoids the bug.
--
More information about the Digitalmars-d-bugs
mailing list