[Bug libstdc++/100682] Outdated manual about the debug mode using

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 24 16:01:24 GMT 2021


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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:743df0fa0df5af32fce70fcdc6ae6b7dc0f01d9b

commit r11-8920-g743df0fa0df5af32fce70fcdc6ae6b7dc0f01d9b
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Jul 22 11:45:32 2021 +0100

    libstdc++: Restore __gnu_debug::array [PR100682]

    As the PR points out, we removed the debug version of std::array without
    any period of deprecation. Although std::array contains all the actual
    debug checks now, removing the <debug/arrray> header breaks any code
    that was using that explicitly. The manual still lists doing that as
    supported.

    This restores the <debug/array> header, but simply defines
    __gnu_debug::array as an alias for std::array, and declares the alias
    with the deprecated attribute. The docs are updated to match.

    Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

    libstdc++-v3/ChangeLog:

            PR libstdc++/100682
            * doc/xml/manual/debug_mode.xml: Update documentation about
            debug capability of std::array.
            * doc/html/*: Regenerate.
            * include/debug/array: New file.

    (cherry picked from commit 254e5d19a177af23a77b67fd51d0d1a25eaabfc7)


More information about the Gcc-bugs mailing list