Bug 3471 – [tdpl] Complicated array expressions fail to compile

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Windows
Creation time
2009-11-03T00:27:00Z
Last change time
2014-04-18T09:12:07Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2009-11-03T00:27:26Z
I'm including this for completeness, since Walter already fixed this in svn 220. Applies to D1 as well. void main() { double[] a, b, c; double d; a[] = -(b[] * (c[] + 4)) + c[] * d; } Fails with: test.d(6): Error: 'b[] * (c[] + cast(double)4)' is not of arithmetic type, it is a double[]
Comment #1 by clugdbug — 2009-11-13T03:51:15Z
Fixed DMD1.051 and 2.036.