www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10447] New: Refused increment of double2 with a immutable(double2)

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

           Summary: Refused increment of double2 with a immutable(double2)
           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


--- Comment #0 from bearophile_hugs eml.cc 2013-06-22 07:50:18 PDT ---
import core.simd;
void main() {
    immutable double2 a = [1.0, 2.0];
    double2 r;
    r += a;
}

DMD 2.064alpha gives:

test.d(5): Error: incompatible types for ((r) += (a + a)):
'__vector(double[2u])' and 'immutable(__vector(double[2u]))'


(This code shows the same error 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