From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7B0BC3858C66; Sat, 25 May 2024 01:12:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B0BC3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716599550; bh=AWiAbHO5UJJPkc9x048JaX3RT7ompqrIsGrLG/MY8t0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wFNN0tHnnkxzhIymyUagKsMT/kZkGDfhAfBPBPX26hiTiW0LwT4uarfnPXIdY+XfY rBdam64R3PpO3G3hmazR9D9z0f0xANWUhHWklo27ylYCiZkbQ8pjHbg1bN1ix/ZuCY wp1t34RTwNMXQgwBx3V0zkZt+ramhvbgpxmkIY0U= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115222] clang does not think libstdc++'s std::optional is nothrow destructible Date: Sat, 25 May 2024 01:12:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D115222 --- Comment #1 from Andrew Pinski --- here is a much reduced testcase: ``` struct A { ~A() noexcept(false); }; union _Storage { A _M_value; ~_Storage(); }; static_assert(noexcept(_Storage{})); ```=