From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id D018D3858C27; Tue, 22 Nov 2022 17:54:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D018D3858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669139679; bh=HONbkgqeVxQX/W0yQPqkUyR/pm+XEEFx32EK6n+LkwU=; h=From:To:Subject:Date:From; b=iwNK1qlNNz+uBazpQJk9aC1Z8+JpqYzmalZIT4Qlcjq+RVjnjsdxo937CyyTFdQyR WmLLrdpv2B9oa3mU32UbQ5Cr2o3ViK2w25mAxl9254bvZuWp2DzglgM3OXHvs0neuP o0fM17SowMt9oPRz1OF6EeA/q5xdKzTa3RDqPZG0= 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 r13-4242] libstdc++: Add testcase for fs::path constraint recursion [PR106201] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 95489a2a279893bf2e0fbb3fb378bdfcf0212faf X-Git-Newrev: 6b859736bb1e707778627b2e58ef6088e475a54c Message-Id: <20221122175439.D018D3858C27@sourceware.org> Date: Tue, 22 Nov 2022 17:54:39 +0000 (GMT) List-Id: https://gcc.gnu.org/g:6b859736bb1e707778627b2e58ef6088e475a54c commit r13-4242-g6b859736bb1e707778627b2e58ef6088e475a54c Author: Jonathan Wakely Date: Tue Nov 22 12:17:27 2022 +0000 libstdc++: Add testcase for fs::path constraint recursion [PR106201] libstdc++-v3/ChangeLog: PR libstdc++/106201 * testsuite/27_io/filesystem/iterators/106201.cc: New test. Diff: --- libstdc++-v3/testsuite/27_io/filesystem/iterators/106201.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libstdc++-v3/testsuite/27_io/filesystem/iterators/106201.cc b/libstdc++-v3/testsuite/27_io/filesystem/iterators/106201.cc new file mode 100644 index 00000000000..4a64e675816 --- /dev/null +++ b/libstdc++-v3/testsuite/27_io/filesystem/iterators/106201.cc @@ -0,0 +1,12 @@ +// { dg-options "-std=gnu++20" } +// { dg-do compile { target c++20 } } +// { dg-require-filesystem-ts "" } + +// PR libstdc++/106201 constraint recursion in path(Source const&) constructor. + +#include +#include +using I = std::counted_iterator; +static_assert( std::swappable ); +using R = std::counted_iterator; +static_assert( std::swappable );