From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2100) id 6E86F3944410; Tue, 18 Aug 2020 01:37:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E86F3944410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597714621; bh=h35MLnqwvungLehNB8shGokB1dXfe0IsAW8oHM6wNDo=; h=From:To:Subject:Date:From; b=FE3vO6QW1CsjsiZSd/rga5M0gLzzP4K9JRoLOEGP+ojwsGBaQvktwpa9BW9NLLpHk FmIspXDhsL3bN696xJbJHzr8IInlaE+63SRo9CYu/TJCS8aZVCXikDPsdthb4Fmu38 fXYZ3CRtQ7xOnk/OFgLqqGKrpo61f1xhZlNBgua0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Giuliano Belinassi To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/giulianob/heads/autopar_rebase2)] libstdc++: Fix failing tests for AIX X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/users/giulianob/heads/autopar_rebase2 X-Git-Oldrev: 57190b082928638485b0a2f59d72004bf9f59b44 X-Git-Newrev: e417c0659fb82fabe1bd75849caa617f9a3407c0 Message-Id: <20200818013701.6E86F3944410@sourceware.org> Date: Tue, 18 Aug 2020 01:37:01 +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: Tue, 18 Aug 2020 01:37:01 -0000 https://gcc.gnu.org/g:e417c0659fb82fabe1bd75849caa617f9a3407c0 commit e417c0659fb82fabe1bd75849caa617f9a3407c0 Author: Jonathan Wakely Date: Tue Aug 11 16:16:22 2020 +0100 libstdc++: Fix failing tests for AIX These two tests fail on AIX because defines struct thread in the global namespace (despite it not being a reserved name). That means the using-declaration that adds it to the global namespace causes a redeclaration error. libstdc++-v3/ChangeLog: * testsuite/30_threads/thread/cons/84535.cc: Use a custom namespace. * testsuite/30_threads/thread/cons/lwg2097.cc: Likewise. Diff: --- libstdc++-v3/testsuite/30_threads/thread/cons/84535.cc | 3 +++ libstdc++-v3/testsuite/30_threads/thread/cons/lwg2097.cc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/84535.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/84535.cc index 7846d3f7b68..711687b4f5c 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/84535.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/84535.cc @@ -20,6 +20,8 @@ #include +namespace __gnu_test +{ using std::is_constructible; using std::thread; @@ -28,3 +30,4 @@ static_assert(!is_constructible::value, ""); static_assert(!is_constructible::value, ""); static_assert(!is_constructible::value, ""); static_assert(!is_constructible::value, ""); +} diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/lwg2097.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/lwg2097.cc index e0d588e51f9..1ad2a76cb58 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/lwg2097.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/lwg2097.cc @@ -20,9 +20,12 @@ #include +namespace __gnu_test +{ using std::thread; using std::is_constructible; static_assert( !is_constructible::value, "" ); static_assert( !is_constructible::value, "" ); static_assert( !is_constructible::value, "" ); +}