From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 890D43858D32; Sat, 3 Jun 2023 18:18:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 890D43858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685816302; bh=PfVAzUqZSemOdLgqZ700er+Dcsf5dFxz8QDWdHSC+hc=; h=From:To:Subject:Date:From; b=LZR2Lk3lejiSiInYiJ+G4hxhw0ePw7fXdCTds4wqDixalHHeYFTCyZaxrEKhQVVV+ 9CtdNtc3dK4cZNFtZzVhPUVOgDV7/P/IpfWKIvpf1boXaesx/1elGJhFmqRNbU91+S lt2QeyZTLoL1YEXTKoj0O5Y4XOLwltihMMWbEFGY= From: "stevenxia990430 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110106] New: ICE on noexcept(noexcept(...)) with optional Date: Sat, 03 Jun 2023 18:18:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stevenxia990430 at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D110106 Bug ID: 110106 Summary: ICE on noexcept(noexcept(...)) with optional Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: stevenxia990430 at gmail dot com Target Milestone: --- The following program produces internal compiler error: Segmentation fault. Tested on GCC-trunk. Note replacing the std::optional{z} inside the noexcept with just {z} compiles with failure.=20 To quickly reproduce: https://gcc.godbolt.org/z/dhjETE7K3 ``` #include namespace x { void y(std::optional z) noexcept(noexcept(std::optional{z})) {} } int main() { } ``` tested this on clang-trunk and it successfully compiles.=