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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>:

https://gcc.gnu.org/g:756eabacfcd767e39eea63257a026f61a4c4e661

commit r12-6992-g756eabacfcd767e39eea63257a026f61a4c4e661
Author: Martin Sebor <mse...@redhat.com>
Date:   Tue Feb 1 17:19:11 2022 -0700

    Declare std::array members with attribute const [PR101831].

    Resolves:
    PR libstdc++/101831 - Spurious maybe-uninitialized warning on
std::array::size

    libstdc++-v3/ChangeLog:

            PR libstdc++/101831
            * include/std/array (begin): Declare const member function
attribute
            const.
            (end, rbegin, rend, size, max_size, empty, data): Same.
            * testsuite/23_containers/array/capacity/empty.cc: Add test cases.
            * testsuite/23_containers/array/capacity/max_size.cc: Same.
            * testsuite/23_containers/array/capacity/size.cc: Same.
            * testsuite/23_containers/array/iterators/begin_end.cc: New test.

Reply via email to