When compiling the attached repro case with dmd -m64 -g repro.d
Created attachment 1218 [details] repro case
Yep, this is definitely annoying. I just hadn't pestered Walter about it yet. Thx for the bug! :P
*** Issue 10450 has been marked as a duplicate of this issue. ***
Also take a look at the test cases in Issue 10450 Another test case: import core.simd: double2; struct Foo { double2 x; this(uint) { x = [0.0, 0.0]; } } void main() { Foo y = Foo(); } dmd gives the same error with -g: Internal error: backend\cgcv.c 2162 ldmd2 gives even without -g: fpext source and destination must both be a vector or neither %tmp1 = fpext double 0x7FFC000000000000 to <2 x double> Broken module found, compilation aborted!
https://github.com/D-Programming-Language/dmd/pull/2903
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5d0a27eba94f88963f979c247d3e8eb4785b35f5 Merge pull request #2903 from rainers/issue10224 fix Issue 10224: core.simd ICE cgcv.c line 2162 when compiling with -g
The test case also fails on linux (see bug 11655).
The failure of the test case in comment 4 is not related to generating debug info. It is covered by issue 11655, so I think we can close this one.