Issue 10224 - core.simd ICE cgcv.c line 2162 when compiling with -g
Summary: core.simd ICE cgcv.c line 2162 when compiling with -g
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: DebugInfo, pull
: 10450 (view as issue list)
Depends on:
Blocks:
 
Reported: 2013-06-01 02:49 UTC by Benjamin Thaut
Modified: 2013-11-30 23:58 UTC (History)
4 users (show)

See Also:


Attachments
repro case (308 bytes, text/x-dsrc)
2013-06-01 02:50 UTC, Benjamin Thaut
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Benjamin Thaut 2013-06-01 02:49:50 UTC
When compiling the attached repro case with 
dmd -m64 -g repro.d
Comment 1 Benjamin Thaut 2013-06-01 02:50:06 UTC
Created attachment 1218 [details]
repro case
Comment 2 Manu 2013-06-03 03:48:06 UTC
Yep, this is definitely annoying. I just hadn't pestered Walter about it yet.
Thx for the bug! :P
Comment 3 Benjamin Thaut 2013-06-27 09:25:51 UTC
*** Issue 10450 has been marked as a duplicate of this issue. ***
Comment 4 bearophile_hugs 2013-06-27 13:04:53 UTC
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!
Comment 6 github-bugzilla 2013-11-30 07:05:54 UTC
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
Comment 7 Martin Nowak 2013-11-30 12:43:24 UTC
The test case also fails on linux (see bug 11655).
Comment 8 Rainer Schuetze 2013-11-30 23:58:53 UTC
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.