You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.c:2:16: error: invalid application of 'sizeof' to an incomplete type 'const int []'
_Static_assert(sizeof(x) == sizeof(int[2]), "");
^
We're incorrectly treating x as having type const int[] instead of const int[2]. I suspect we're not resolving incomplete array types correctly when indirected through typeof. const int x[] = {1, 2}; (with no typeof) works fine.
The text was updated successfully, but these errors were encountered:
We're incorrectly treating
x
as having typeconst int[]
instead ofconst int[2]
. I suspect we're not resolving incomplete array types correctly when indirected throughtypeof
.const int x[] = {1, 2};
(with no typeof) works fine.The text was updated successfully, but these errors were encountered: