June 06, 2013 [Issue 10282] New: Refused assignment of vector op result to const array | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10282 Summary: Refused assignment of vector op result to const array Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic, rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2013-06-06 05:04:57 PDT --- struct Foo { double[1] x; } void main() { Foo[] foos; foreach (f; foos) const double[1] a = f.x[] - f.x[]; } DMD 2.064alpha gives a not meaningful error message with no line number: Error: cannot modify const expression p2[p] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation