digitalmars.D.bugs - [Issue 5905] New: Error message with const fixed-size array
- d-bugmail puremagic.com (28/28) Apr 28 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5905
- d-bugmail puremagic.com (10/10) Apr 29 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5905
- d-bugmail puremagic.com (13/14) May 02 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5905
- d-bugmail puremagic.com (14/14) Dec 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5905
- d-bugmail puremagic.com (9/9) Dec 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5905
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 puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs 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: -------
Apr 28 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5905 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm gmail.com --- Comment #1 from kennytm gmail.com 2011-04-29 11:42:15 PDT --- What do you suggest? "Missing value for a constant fixed array"? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 29 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5905 --- Comment #2 from bearophile_hugs eml.cc 2011-05-02 04:15:38 PDT --- (In reply to comment #1)What do you suggest? "Missing value for a constant fixed array"?This sounds better than the current error message. Noted: currently this code is accepted: struct Foo {} void main() { const(Foo) f; } f is initialized to a const .init. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 02 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5905 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|diagnostic |rejects-valid Status|NEW |RESOLVED CC| |andrej.mitrovich gmail.com Resolution| |FIXED Severity|minor |normal --- Comment #3 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2012-12-27 17:57:46 PST --- This was a rejects-valid. Fixed in 2.060+. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 27 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5905 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla digitalmars.com Resolution|FIXED |WORKSFORME -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 27 2012