From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 445A9386F029; Fri, 21 Aug 2020 03:56:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 445A9386F029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597982196; bh=cl2ftPrjOhVYb1dspBk4qwV2C9hlUS30PJCq9jCky2A=; h=From:To:Subject:Date:From; b=A8a0godEwWHs2wys76AZwhvz7PqQwd/XMYR7dbdrhaStbFaNlNmJLA9RPOAiT54Rv zGks2yZpuyUg4GzB3KqygqydQinc4s5FMbMNjtaZEV57FRUaxWMLDx9P9rIlpdP1uO eq1AC075hpaZy0u1wFB0I01gvPvBQkXkTCN8Mtpk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testbase)] libstdc++: Fix failing tests for AIX X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/users/aoliva/heads/testbase X-Git-Oldrev: 18095be17013444d9e91aa8c73ebe5cf58ccb3f1 X-Git-Newrev: fe8d7fec4db838cae536eeef1965db83959cf6ee Message-Id: <20200821035636.445A9386F029@sourceware.org> Date: Fri, 21 Aug 2020 03:56:36 +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: Fri, 21 Aug 2020 03:56:36 -0000 https://gcc.gnu.org/g:fe8d7fec4db838cae536eeef1965db83959cf6ee commit fe8d7fec4db838cae536eeef1965db83959cf6ee 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, "" ); +}