D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3471 - [tdpl] Complicated array expressions fail to compile
Summary: [tdpl] Complicated array expressions fail to compile
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: patch, rejects-valid
Depends on:
Blocks:
 
Reported: 2009-11-03 00:27 UTC by Don
Modified: 2014-04-18 09:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2009-11-03 00:27:26 UTC
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 Don 2009-11-13 03:51:15 UTC
Fixed DMD1.051 and 2.036.