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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to