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

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

https://gcc.gnu.org/g:3f78294969641cb762dc2abcd832c7d3edeefa79

commit r13-7624-g3f78294969641cb762dc2abcd832c7d3edeefa79
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Jul 26 14:05:58 2023 +0100

    libstdc++: Add deprecated attribute to std::random_shuffle declarations

    We already have these attributes on the definitions in <bits/stl_algo.h>
    but they don't work due to PR c++/84542. Add the attributes to the
    declarations in <bits/algorithmfwd.h> as well, and add a test.

    libstdc++-v3/ChangeLog:

            * include/bits/algorithmfwd.h (random_shuffle): Add deprecated
            attribute.
            * include/bits/stl_algo.h (random_shuffle): Correct comments.
            * testsuite/25_algorithms/random_shuffle/1.cc: Disable
            deprecated warnings.
            * testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
            * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
            * testsuite/25_algorithms/random_shuffle/deprecated.cc: New
            test.

    (cherry picked from commit c01b344e814001e07fd304ce98d013d811e90192)

Reply via email to