[Issue 10446] New: Building a SIMD value from variables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 22 07:43:22 PDT 2013


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 at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-06-22 07:43:21 PDT ---
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: -------


More information about the Digitalmars-d-bugs mailing list