[cfe-dev] Confusing diagnostic for initializing array with array

Neil Booth neil at daikokuya.co.uk
Fri Feb 8 04:54:38 PST 2008

Eli Friedman wrote:-

> 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.

I don't see how that message can make sense in any context.  I'd
expect it to be complaining about initializing x with y.


More information about the cfe-dev mailing list