Bug 9910 – Scalar op vector is broken.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-09T03:10:00Z
Last change time
2016-09-12T08:49:29Z
Assigned to
nobody
Creator
ibuclaw

Comments

Comment #0 by ibuclaw — 2013-04-09T03:10:57Z
Minimal test: --- import core.simd; void main() { float4 a = [1,1,1,1]; auto works = a + 3; auto bug = 3 + a; } --- Causes problems in GDC because 'bug' is inferred as an 'int' type.
Comment #1 by ibuclaw — 2013-04-09T03:25:59Z
Comment #2 by ibuclaw — 2013-04-09T08:24:04Z
Comment #3 by ilyayaroshenko — 2016-09-12T08:49:29Z