https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114479

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:2f2924078ce51c2a0da3ad8f958f2d1de533969a

commit r14-9759-g2f2924078ce51c2a0da3ad8f958f2d1de533969a
Author: Marek Polacek <pola...@redhat.com>
Date:   Mon Apr 1 12:55:46 2024 -0400

    c++: make __is_array return false for T[0] [PR114479]

    When we switched to using the __is_array built-in trait to implement
    std::is_array in r14-6623-g7fd9c349e45534, we started saying that
    T[0] is an array.  There are various opinions as to whether that is
    the best answer, but it seems prudent to keep the GCC 13 result.

            PR c++/114479

    gcc/cp/ChangeLog:

            * semantics.cc (trait_expr_value) <case CPTK_IS_ARRAY>: Return
false
            for zero-sized arrays.

    gcc/testsuite/ChangeLog:

            * g++.dg/ext/is_array.C: Extend.

Reply via email to