[Issue 10282] New: Refused assignment of vector op result to const array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 6 05:04:58 PDT 2013
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 at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list