From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F0CFA3858C98; Wed, 28 Feb 2024 14:50:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F0CFA3858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709131840; bh=5zmWVyiVzuPaW2cyKWwx5hickGRrbb2WicHE1x1WFEc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=spOgJsch5y624kQMD5MXZJzi2m1xOOQFeqPCFr9MhL0XVs73HbNzPEPSKxnKDqUHq yjk6fx0UxiAsyQzcVpBz7sg+7WDP79JA6/s+lAXxx29Xihye6AsETzKj0JeQGlNWxk 8zdCCFODtvNkNnajmAspcvTT2/SyQ/o9MWdV7HCw= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/114152] Wrong exception specifiers for LFTSv3 scope guard destructors Date: Wed, 28 Feb 2024 14:50:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114152 --- Comment #3 from Jonathan Wakely --- I can take care of it this time, since I think I can figure out how to fix = it just from your detailed report :-) and I've already written a testcase: // { dg-do compile { target c++20 } } // PR libstdc++/114152 // Wrong exception specifiers for LFTSv3 scope guard destructors #include using namespace std::experimental; struct F { void operator()() noexcept(false); }; static_assert( noexcept(std::declval&>().~scope_exit()) ); static_assert( noexcept(std::declval&>().~scope_fail()) ); static_assert( ! noexcept(std::declval&>().~scope_success(= )) ); struct G { void operator()() noexcept(true); }; static_assert( noexcept(std::declval&>().~scope_exit()) ); static_assert( noexcept(std::declval&>().~scope_fail()) ); static_assert( noexcept(std::declval&>().~scope_success())= );=