public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/84542] missing -Wdeprecated-declarations on a redeclared function template
Date: Wed, 26 Jul 2023 16:02:54 +0000	[thread overview]
Message-ID: <bug-84542-4-8S5hVBYvPi@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-84542-4@http.gcc.gnu.org/bugzilla/>

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

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

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

commit r14-2796-gc01b344e814001e07fd304ce98d013d811e90192
Author: Jonathan Wakely <jwakely@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.

  parent reply	other threads:[~2023-07-26 16:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-84542-4@http.gcc.gnu.org/bugzilla/>
2023-07-25 16:16 ` pinskia at gcc dot gnu.org
2023-07-25 16:16 ` pinskia at gcc dot gnu.org
2023-07-25 21:12 ` redi at gcc dot gnu.org
2023-07-26 16:02 ` cvs-commit at gcc dot gnu.org [this message]
2023-07-28 17:32 ` cvs-commit at gcc dot gnu.org
2023-12-21 19:34 ` cvs-commit at gcc dot gnu.org
2023-12-21 19:35 ` ppalka at gcc dot gnu.org
2024-03-18 14:05 ` cvs-commit at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-84542-4-8S5hVBYvPi@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).