From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 5F9983856DD0; Tue, 18 Jul 2023 11:00:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F9983856DD0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689678044; bh=MMs+fnhGjgd7s4YC5xtFjBjP276546t3HeNvzOJMhkE=; h=From:To:Subject:Date:From; b=Ji+ZRJx0+RpFN47hEjGeQPx8qlFoFGawanCc82UXZvEkMCgeaOOG9nPuhuufOPd+D PP8g9ixJzyppp5qtYWW+YFFBoya0QjzYJC68WidhvNrcCNXbIcDyCBQJf21Vfz+4QC 1iG4VtFr6gV66J0YDgAXseYnpaYTcjf0FJL18f+w= 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 r13-7576] libstdc++: Disable std::forward_list tests for C++98 mode X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-13 X-Git-Oldrev: d2c737c40c7c5835f744df1da04fd975d934ab5b X-Git-Newrev: 813722fbe423ef16fbca6c16970683ef70d47f59 Message-Id: <20230718110044.5F9983856DD0@sourceware.org> Date: Tue, 18 Jul 2023 11:00:44 +0000 (GMT) List-Id: https://gcc.gnu.org/g:813722fbe423ef16fbca6c16970683ef70d47f59 commit r13-7576-g813722fbe423ef16fbca6c16970683ef70d47f59 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. (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 // . // -// { 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