[Issue 7385] New: Bad error message missing line number on invalid	array op that isn't special cased
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Jan 28 00:44:28 PST 2012
    
    
  
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: yebblies at gmail.com
        ReportedBy: yebblies at gmail.com
--- Comment #0 from yebblies <yebblies at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list