[Issue 7509] Allow SIMD variable contents to have all their values changed to a single float variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 9 02:14:54 PST 2013


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


Iain Buclaw <ibuclaw at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at ubuntu.com


--- Comment #8 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-12-09 02:14:41 PST ---
Brief description of problem.

DMD doesn't allow the following code, whereas GDC and LDC accept and are able
to generate code for (be it slow or optimised from constfolding) the below:


import core.simd;
void main() {
    double x = 1.0, y = 2.0;
    double2 a = x;       // Error: Floating point constant expression expected
    double2 b = [x, y];  // Error: Floating point constant expression expected
}

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


More information about the Digitalmars-d-bugs mailing list