https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117025
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Joseph Myers <js...@gcc.gnu.org>: https://gcc.gnu.org/g:9d9ac1670af224bb9fa2411fe392f98d20fbf751 commit r16-918-g9d9ac1670af224bb9fa2411fe392f98d20fbf751 Author: Alejandro Colomar <a...@kernel.org> Date: Thu May 22 01:15:43 2025 +0200 c: Add -Wpedantic diagnostic for _Countof [PR117025] It has been standardized in C2y. PR c/117025 gcc/c/ChangeLog: * c-parser.cc (c_parser_sizeof_or_countof_expression): Add -Wpedantic diagnostic for _Countof in <= C23 mode. gcc/testsuite/ChangeLog: * gcc.dg/countof-compat.c: New test. * gcc.dg/countof-no-compat.c: New test. * gcc.dg/countof-pedantic.c: New test. * gcc.dg/countof-pedantic-errors.c: New test. Signed-off-by: Alejandro Colomar <a...@kernel.org>