D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10473 - [ICE](init.c line 660) with global struct of double2 field with default initializer
Summary: [ICE](init.c line 660) with global struct of double2 field with default initi...
Status: RESOLVED DUPLICATE of issue 10312
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2013-06-25 03:18 UTC by bearophile_hugs
Modified: 2013-06-29 06:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2013-06-25 03:18:32 UTC
import core.simd: double2;
struct Foo {
    double2 ab = [0.0, 0.0];
}
Foo f = Foo();
void main() {}


DMD 2.064alpha gives:

Assertion failure: '0' on line 660 in file 'init.c'


This gives the same error:


import core.simd: double2;
struct Foo {
    double2 ab = [0.0, 0.0];
}
void foo(Foo f=Foo()) {}
void main() {}


This rejects-valid affects the usage of SIMD registers in my code. See also Issue 10450
Comment 1 Henning Pohl 2013-06-29 06:40:30 UTC

*** This issue has been marked as a duplicate of issue 10312 ***