www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11655] New: assignment of struct with vector field

https://d.puremagic.com/issues/show_bug.cgi?id=11655

           Summary: assignment of struct with vector field
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu



cat > bug.d << CODE
struct Foo
{
    __vector(float[4]) x;
}

void bug()
{
    Foo y;
    y = Foo([0, 0, 0, 0]); // OK
    y = Foo();             // NG
}
CODE
dmd -c bug

----
tym = x1d
Internal error: backend/cgxmm.c 547
----

The function xmmload is called with TYnptr.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 30 2013