From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B7B74383FF7F; Thu, 15 Dec 2022 02:05:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7B74383FF7F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671069921; bh=Mll7WuYWGiK9JwB0oeHvUAQh44zsINbT8Yofa93ciqI=; h=From:To:Subject:Date:From; b=oDiE8PUlbYBvT8yE/ySjXnsqHTVMggADqCDNep3tIhZDDZDs8Oo7yvf6E/k1yHh1g 2z7Bd/uMNECZXGQ8DmNFH0HM0tBvoYZ+Ju1BeaKQBXFnMyqiSMMdhwdtH6wpa0eCWL f9UlzSIJLcENWnsYTpf6lAj/juTmu1cO24UBJgjc= From: "m101010a at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108116] New: internal compiler error: in check_noexcept_r, at cp/except.cc:1074 Date: Thu, 15 Dec 2022 02:05:21 +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.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: m101010a 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 keywords 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=3D108116 Bug ID: 108116 Summary: internal compiler error: in check_noexcept_r, at cp/except.cc:1074 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- When compiling the code #include struct c { c(int); ~c(); }; struct d { d(std::initializer_list); }; struct e { d f{0}; }; template void h() { e{}; } GCC 12 fails with an internal compiler error. This happens with GCC 12.1, 12.2, and when built off of the recent git commit f17ddf2c484427e6ddfd994b62fefcdac27ac02f. It does not happen with GCC 11.3= or before. The full error details and preprocessed source are in the attachme= nt.=