From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 5FC5739ACC0C; Thu, 22 Jul 2021 21:29:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FC5739ACC0C 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 r9-9641] libstdc++: Fix test failure in C++20 mode X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-9 X-Git-Oldrev: ba5e10a8c84f56bb2838adb6d1cc9b74741ac4f1 X-Git-Newrev: 727681335798fa8c4e53148bb24a965640d1e2b1 Message-Id: <20210722212912.5FC5739ACC0C@sourceware.org> Date: Thu, 22 Jul 2021 21:29:12 +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, 22 Jul 2021 21:29:12 -0000 https://gcc.gnu.org/g:727681335798fa8c4e53148bb24a965640d1e2b1 commit r9-9641-g727681335798fa8c4e53148bb24a965640d1e2b1 Author: Jonathan Wakely Date: Thu Jul 22 22:26:30 2021 +0100 libstdc++: Fix test failure in C++20 mode Because the container types are ambiguous in this test, the declarations of the C++20 uniform container erasure function template produce additional errors. They can be ignored. libstdc++-v3/ChangeLog: * testsuite/ext/profile/mutex_extensions_neg.cc: Prune additional errors in C++20 mode. Diff: --- libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc b/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc index cd2a48845aa..f34c4fd107e 100644 --- a/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc +++ b/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc @@ -31,3 +31,6 @@ // { dg-prune-output "tuple:993" } // PMR alias templates cause ambiguities between debug and profile containers: // { dg-prune-output "is ambiguous" } +// C++20 uniform container erasure causes more errors +// { dg-prune-output "expected nested-name-specifier before" } +// { dg-prune-output "expected initializer before" }