diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-01-29 09:32:04 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-01-29 09:32:04 +0100 |
commit | 3a6ddbf7b241e1cd9f73495ea373b0a12015bb07 (patch) | |
tree | f6a6dbde7b975dfb04f52bc258ecc4cc24d39bed /gcc/expr.cc | |
parent | 5d001fa122bf04cfd0611ff7723969a0421b3094 (diff) | |
download | gcc-3a6ddbf7b241e1cd9f73495ea373b0a12015bb07.zip gcc-3a6ddbf7b241e1cd9f73495ea373b0a12015bb07.tar.gz gcc-3a6ddbf7b241e1cd9f73495ea373b0a12015bb07.tar.bz2 |
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 <jakub@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.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions