[Issue 2276] New: Error message missing line number, wrong variable names

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 9 10:17:57 PDT 2008


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

           Summary: Error message missing line number, wrong variable names
           Product: D
           Version: 2.018
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: simen.kjaras at gmail.com


This program:

void main()
{
        int[] a = [0];
        int[] b = [1, 2];
        int[] c;
        c[] = a + b;
}

Gives the error message "Error: cannot implicitly convert expression (c0 + c1)
of type int[] to int". While I agree the program is flawed, so is the error
message.


-- 



More information about the Digitalmars-d-bugs mailing list