Bug 10473 – [ICE](init.c line 660) with global struct of double2 field with default initializer

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-25T03:18:00Z
Last change time
2013-06-29T06:40:30Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2013-06-25T03:18:32Z
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 by henning — 2013-06-29T06:40:30Z
*** This issue has been marked as a duplicate of issue 10312 ***