public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-7576] libstdc++: Disable std::forward_list tests for C++98 mode Date: Tue, 18 Jul 2023 11:00:44 +0000 (GMT) [thread overview] Message-ID: <20230718110044.5F9983856DD0@sourceware.org> (raw) https://gcc.gnu.org/g:813722fbe423ef16fbca6c16970683ef70d47f59 commit r13-7576-g813722fbe423ef16fbca6c16970683ef70d47f59 Author: Jonathan Wakely <jwakely@redhat.com> Date: Tue Jul 4 23:41:50 2023 +0100 libstdc++: Disable std::forward_list tests for C++98 mode These tests fail with -std=gnu++98/-D_GLIBCXX_DEBUG in the runtest flags. They should require the c++11 effective target. libstdc++-v3/ChangeLog: * testsuite/23_containers/forward_list/debug/iterator1_neg.cc: Skip as UNSUPPORTED for C++98 mode. * testsuite/23_containers/forward_list/debug/iterator3_neg.cc: Likewise. (cherry picked from commit cd9964b7e2311209ffaa00b322b31c67d64ca83d) Diff: --- .../testsuite/23_containers/forward_list/debug/iterator1_neg.cc | 2 +- .../testsuite/23_containers/forward_list/debug/iterator3_neg.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc index a0e05413896..59a22f7ec89 100644 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. // -// { dg-do run { xfail *-*-* } } +// { dg-do run { target c++11 xfail *-*-* } } // { dg-require-debug-mode "" } #include <forward_list> diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc index bfa281ad9f4..0c4439f46ed 100644 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. // -// { dg-do run { xfail *-*-* } } +// { dg-do run { target c++11 xfail *-*-* } } // { dg-require-debug-mode "" } #include <forward_list>
reply other threads:[~2023-07-18 11:00 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20230718110044.5F9983856DD0@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@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: linkBe 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).