4 ms·
I was trying to get clang to throw an error that included type information to double check what it thought the type was. Quickest thing I could think of was try
by Kamq 3y ago
I was trying to get clang to throw an error that included type information to double check what it thought the type was. Quickest thing I could think of was trying to assign to an array.
The exact error in question was:
error: array type 'int[3]' is not assignable
Which seems to imply that clang is considering the length to be part of the type.
edit: You asked for code (my apologies that it's rather trivial).
int x[3] = {1, 2, 3};
int y[3];
y = x;