https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122591
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Joseph Myers <[email protected]>: https://gcc.gnu.org/g:a7f188ccaf721ab04f569a6c140dd1b1c73ab500 commit r16-5137-ga7f188ccaf721ab04f569a6c140dd1b1c73ab500 Author: Alejandro Colomar <[email protected]> Date: Mon Nov 10 19:26:21 2025 +0000 c: Fix return type of _Countof [PR122591] PR c/122591 gcc/c-family/ChangeLog: * c-common.cc (c_countof_type): Convert return value to size_t. gcc/testsuite/ChangeLog: * gcc.dg/countof-compile.c (type): Test return type of _Countof. Reported-by: Sam James <[email protected]> Suggested-by: Andrew Pinski <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
