Testcase:
int test() {
int a[10];
int b[10] = a;
}

gives the following error:
error: incompatible type initializing 'int [10]', expected 'int [10]'

which is completely confusing.  This code obviously isn't legal, but
reason has nothing to do with the type of the initializer.

Not sure what the best wording for this error is, though.

-Eli
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Reply via email to