From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 5A1D73851AB8; Mon, 20 Mar 2023 11:54:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A1D73851AB8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679313281; bh=r5ptJ9GuujQWvNnioAltcliccjvK14tQ75Rc3RG9q0Y=; h=From:To:Subject:Date:From; b=djOFTTOjwLYWXD/t7WWYqF76BIckOS2X++i0ioWZmnBxzm3TSyiwPMfe2crfeTPet MuOdzg6mfkcLaauTjWrBkFPuJND/AhxBJL9n4YEWtSoS0j7NTgsI0aB1DPpAiS3Rtd fOM+z/Zkhm/85R/TI8w2DvBwCl0KupOGvqE1/zJE= 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-9297] libstdc++: Remove template-head from std::expected ctor [PR109182] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 2a9e6f58c4d9d63dde6c4d53d10f686bf71fb435 X-Git-Newrev: 03f745992715872982d86bf2085f956bf0173b50 Message-Id: <20230320115441.5A1D73851AB8@sourceware.org> Date: Mon, 20 Mar 2023 11:54:41 +0000 (GMT) List-Id: https://gcc.gnu.org/g:03f745992715872982d86bf2085f956bf0173b50 commit r12-9297-g03f745992715872982d86bf2085f956bf0173b50 Author: Jonathan Wakely Date: Mon Mar 20 09:30:58 2023 +0000 libstdc++: Remove template-head from std::expected ctor [PR109182] The presence of a template-head on this constructor is a copy & paste error from the primary template. libstdc++-v3/ChangeLog: PR libstdc++/109182 * include/std/expected (expected::expected(in_place_t)): Remove template-head. Diff: --- libstdc++-v3/include/std/expected | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/include/std/expected b/libstdc++-v3/include/std/expected index 2fe25a90d2d..95c2559e8f1 100644 --- a/libstdc++-v3/include/std/expected +++ b/libstdc++-v3/include/std/expected @@ -993,11 +993,10 @@ namespace __expected : _M_unex(std::move(__u).error()), _M_has_value(false) { } - template - constexpr explicit - expected(in_place_t) noexcept - : expected() - { } + constexpr explicit + expected(in_place_t) noexcept + : expected() + { } template requires is_constructible_v<_Er, _Args...>