Summary: Bad error message missing line number on invalid array
                    op that isn't special cased
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from yebblies <> 2012-01-28 19:44:27 EST ---
void main()
    immutable double[] nums = [1.0, 2.0];
    nums[] /= nums[];

DMD v2.058 DEBUG
Error: p1[p] isn't mutable

When it should print:
testx.d(12): Error: slice nums[] is not mutable

Normal because of the missing line number

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to