[Issue 659] New: unclear error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 6 14:37:53 PST 2006


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

           Summary: unclear error message
           Product: GDC
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: csantander619 at gmail.com


This code gives an unclear error message:

//----------------
struct A
{
    int [10] arr;
}

void main ()
{
    A a;
    a.arr.length = 20;
}
//----------------
$ gdmd test.d 
test.d:9: Error: constant (*(&(a) + 0)).length is not an lvalue
//----------------


-- 




More information about the D.gnu mailing list