On 2025-11-06 15:56, Sam James wrote:
Having actually looked at it, it's now obvious. GCC trunk implements _Countof (PR117025).
So GCC _Countof doesn't return size_t as C2y requires?What happens when you run the following program? It should exit with status 1; is that what happens with you?
#include <stddef.h>
extern int bounded[10];
int
main ()
{
return _Generic (_Countof (bounded), size_t: 1, default: 0);
}
And if the above does exit with status 1, why does the Gnulib test fail
there?
