http://d.puremagic.com/issues/show_bug.cgi?id=7385

           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
        AssignedTo: yebbl...@gmail.com
        ReportedBy: yebbl...@gmail.com


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

Prints:
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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to