https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118655
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:3a6ddbf7b241e1cd9f73495ea373b0a12015bb07 commit r15-7263-g3a6ddbf7b241e1cd9f73495ea373b0a12015bb07 Author: Jakub Jelinek <ja...@redhat.com> Date: Wed Jan 29 09:32:04 2025 +0100 c++: Return false from __is_bounded_array for zero-sized arrays [PR118655] This is basically Marek's PR114479 r14-9759 __is_array fix applied to __is_bounded_array as well. Similarly to that trait, when not using the builtin it returned false for zero sized arrays but when using the builtin it returns true. 2025-01-29 Jakub Jelinek <ja...@redhat.com> PR c++/118655 * semantics.cc (trait_expr_value) <case CPTK_IS_BOUNDED_ARRAY>: Return false for zero-sized arrays. * g++.dg/ext/is_bounded_array.C: Extend.