From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id BC7383857700; Wed, 5 Jul 2023 06:39:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC7383857700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688539194; bh=4XnWST5slbWNvV3HoLWUJTELnGPzwPmz03pjz2Fknhs=; h=From:To:Subject:Date:From; b=X80CY+xxM0K29K8veUdTkxpBvV0ABmZzmav6DztR2kKGRiRnfCbpmS5EGdVa1wEr/ 0qszhu0Cp3U3Mr0f4nrwcp/BgP4w7ojYnfpO2zKtTFfksxwlEsn4Pl6KXjm8bTnDkV 3PDF3SFPGIcyAaXNBNOKASHU9O3dQBKKxXXlIqIc= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely 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 X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 83cae6c4b788544635a71748e1881c150f42efef X-Git-Newrev: cd9964b7e2311209ffaa00b322b31c67d64ca83d Message-Id: <20230705063954.BC7383857700@sourceware.org> Date: Wed, 5 Jul 2023 06:39:54 +0000 (GMT) List-Id: https://gcc.gnu.org/g:cd9964b7e2311209ffaa00b322b31c67d64ca83d commit r14-2307-gcd9964b7e2311209ffaa00b322b31c67d64ca83d Author: Jonathan Wakely 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 // . // -// { dg-do run { xfail *-*-* } } +// { dg-do run { target c++11 xfail *-*-* } } // { dg-require-debug-mode "" } #include 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 // . // -// { dg-do run { xfail *-*-* } } +// { dg-do run { target c++11 xfail *-*-* } } // { dg-require-debug-mode "" } #include