From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DBA5A3858D28; Sat, 24 Sep 2022 04:06:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DBA5A3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663992409; bh=RZc47SOsP81xqOsMpKLzK7pS5b6zB3Rmf0cAWlfVz3Y=; h=From:To:Subject:Date:From; b=mgKM66aJdial6ZthdzPt9e+yPA7lj7YFZ+pq6RzFXMrNkyWQXBlQrYChdHPEk7jRS XsiwCWq6Ld0PvLlQTD1FvjshvRNoBmThTBTIeZu0tm18IC/Uxm3V3xanYnZ4ewiGKy 4M5epyZH6InPdeuvYEXPT0YtrnYy7rCEgJFbIffs= From: "alex at clmbng dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107024] New: ICE in finish_expr_stmt, at cp/semantics.cc:872 Date: Sat, 24 Sep 2022 04:06:49 +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.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alex at clmbng 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=3D107024 Bug ID: 107024 Summary: ICE in finish_expr_stmt, at cp/semantics.cc:872 Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alex at clmbng dot com Target Milestone: --- Full code here: https://godbolt.org/z/6nnTonMjq GCC seems to fail in certain situations involving lambdas in unevaluated contexts. Here's a minimal example that triggers an ICE at the same spot: https://godbolt.org/z/99jnqeeoG. This is similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D10569, but triggers in a different location. Using: GCC 12.2.0 Target: x86_64-linux-gnu CL: -std=3Dc++20=