https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016

--- Comment #54 from Alejandro Colomar <alx at kernel dot org> ---
In a similar manner, I've made the following cases compile-time errors for
__lengthof__ (still under development):

extern int x[];

void
f(int a[])
{
    size_t  n;

    n = __lengthof__(a);
    n = __lengthof__(x);
}

error: invalid application of ‘lengthof’ to incomplete type ‘int[]’

Because it doesn't make sense at all.

Reply via email to