[Issue 10447] New: Refused increment of double2 with a immutable(double2)

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


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


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list