From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id C4C533888C44; Thu, 21 Apr 2022 12:32:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4C533888C44 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 r11-9901] libstdc++: Fix macro checked by test X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: 3859a3cb9b997fb8d9134180b8cc68f040dd36f5 X-Git-Newrev: 57f658fe8459a285c89b9ea72ff1411a8c733632 Message-Id: <20220421123232.C4C533888C44@sourceware.org> Date: Thu, 21 Apr 2022 12:32:32 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2022 12:32:32 -0000 https://gcc.gnu.org/g:57f658fe8459a285c89b9ea72ff1411a8c733632 commit r11-9901-g57f658fe8459a285c89b9ea72ff1411a8c733632 Author: Jonathan Wakely Date: Wed Apr 20 13:50:14 2022 +0100 libstdc++: Fix macro checked by test The macro being tested here is wrong, but just happens to have the same value as the one supposed to be tested. libstdc++-v3/ChangeLog: * testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc: Check correct feature test macro. (cherry picked from commit 67ded3a1f5b667b4cb5eb2fee8a031e8e4060a7d) Diff: --- .../21_strings/basic_string_view/operations/copy/char/constexpr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc index f467d114c24..7ae3ccda22f 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc @@ -22,7 +22,7 @@ #ifndef __cpp_lib_constexpr_string_view # error "Feature test macro for constexpr copy is missing in " -#elif __cpp_lib_constexpr_iterator < 201811L +#elif __cpp_lib_constexpr_string_view < 201811L # error "Feature test macro for constexpr copy has wrong value in " #endif