www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10473] New: [ICE](init.c line 660) with global struct of double2 field with default initializer

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10473

           Summary: [ICE](init.c line 660) with global struct of double2
                    field with default initializer
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 25 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10473


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |henning still-hidden.de
         Resolution|                            |DUPLICATE



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 29 2013