From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 8AA47393C87E; Wed, 28 Apr 2021 17:17:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AA47393C87E 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 r12-225] libstdc++: Add testcase for std::pair as a structural type [PR 97930] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: da4a0817beb506bc1c05d85e783ba6ffd079a194 X-Git-Newrev: c8767ee9f9355a63bfeb8318df32bc39c5b0f3ad Message-Id: <20210428171746.8AA47393C87E@sourceware.org> Date: Wed, 28 Apr 2021 17:17:46 +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: Wed, 28 Apr 2021 17:17:46 -0000 https://gcc.gnu.org/g:c8767ee9f9355a63bfeb8318df32bc39c5b0f3ad commit r12-225-gc8767ee9f9355a63bfeb8318df32bc39c5b0f3ad Author: Jonathan Wakely Date: Wed Apr 28 18:14:05 2021 +0100 libstdc++: Add testcase for std::pair as a structural type [PR 97930] This PR was fixed by r12-221-ge1543e694dadf1ea70eb72325219bc0cdc914a35 (for compilers that support C++20 Concepts) so this adds the testcase. libstdc++-v3/ChangeLog: PR libstdc++/97930 * testsuite/20_util/pair/requirements/structural.cc: New test. Diff: --- libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc b/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc new file mode 100644 index 00000000000..d4df20197ee --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc @@ -0,0 +1,9 @@ +// { dg-options "-std=gnu++20" } +// { dg-do compile { target c++20 } } + +#include + +// C++20 20.4.2 [pairs.pair] +// pair is a structural type (13.2) if T and U are both structural types. + +template> struct S; // PR libstdc++/97930