[Issue 5905] New: Error message with const fixed-size array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 28 15:17:53 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5905
Summary: Error message with const fixed-size array
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2011-04-28 15:14:07 PDT ---
D2 code:
void main() {
const float[1] a;
const(float[1]) b;
const(float)[1] c;
}
DMD 2.052 shows the compile error messages:
test.d(2): Error: slice a[] is not mutable
test.d(3): Error: slice b[] is not mutable
test.d(4): Error: slice c[] is not mutable
I think such error messages are not clear enough.
--
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