digitalmars.D.bugs - [Issue 10282] New: Refused assignment of vector op result to const array
- d-bugmail puremagic.com (27/27) Jun 06 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10282
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 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: -------
Jun 06 2013