[Issue 3471] New: [tdpl] Complicated array expressions fail to compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 3 00:27:27 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3471
Summary: [tdpl] Complicated array expressions fail to compile
Product: D
Version: 1.050
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: patch, rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2009-11-03 00:27:26 PST ---
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[]
--
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