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 r14-2307] libstdc++: Disable std::forward_list tests for C++98 mode
Date: Wed,  5 Jul 2023 06:39:54 +0000 (GMT)	[thread overview]
Message-ID: <20230705063954.BC7383857700@sourceware.org> (raw)

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

commit r14-2307-gcd9964b7e2311209ffaa00b322b31c67d64ca83d
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.

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-05  6:39 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=20230705063954.BC7383857700@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: 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).