www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10446] New: Building a SIMD value from variables

http://d.puremagic.com/issues/show_bug.cgi?id=10446

           Summary: Building a SIMD value from variables
           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;
void main() {
    double x = 1.0, y = 2.0;
    double2 a = [x, y];
}



DMD 2.064alpha gives:

test.d(4): Error: Floating point constant expression expected instead of x
test.d(4): Error: Floating point constant expression expected instead of y


(This code compiles and works correctly on LDC2 v.0.11.0).

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