Bug 10447 – Refused increment of double2 with a immutable(double2)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-22T07:50:00Z
Last change time
2017-01-16T23:25:20Z
Keywords
pull, rejects-valid, SIMD
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2013-06-22T07:50:18Z
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).
Comment #1 by bugzilla — 2016-11-22T01:59:50Z
Comment #2 by github-bugzilla — 2016-12-03T00:59:04Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e625e20cda267c67b2cafb554604193c19e53dd7 fix Issue 10447 - Refused increment of double2 with a immutable(double2) https://github.com/dlang/dmd/commit/f3d9bf686c36a3928cd0c5c7c6ae2635844cee9e Merge pull request #6272 from WalterBright/fix10447 fix Issue 10447 - Refused increment of double2 with a immutable(double2)
Comment #3 by github-bugzilla — 2016-12-27T14:41:21Z
Commits pushed to scope at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e625e20cda267c67b2cafb554604193c19e53dd7 fix Issue 10447 - Refused increment of double2 with a immutable(double2) https://github.com/dlang/dmd/commit/f3d9bf686c36a3928cd0c5c7c6ae2635844cee9e Merge pull request #6272 from WalterBright/fix10447
Comment #4 by github-bugzilla — 2017-01-16T23:25:20Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e625e20cda267c67b2cafb554604193c19e53dd7 fix Issue 10447 - Refused increment of double2 with a immutable(double2) https://github.com/dlang/dmd/commit/f3d9bf686c36a3928cd0c5c7c6ae2635844cee9e Merge pull request #6272 from WalterBright/fix10447