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

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

https://gcc.gnu.org/g:bfa7e7dfc19e07bff319636cf1bdfd57b6c68f41

commit r12-10245-gbfa7e7dfc19e07bff319636cf1bdfd57b6c68f41
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