From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9BD4B385E005; Fri, 21 Jul 2023 21:04:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BD4B385E005 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689973467; bh=80ZPuOoJHKLa2E2EJuq09ZWJGnDpV9gm+fk/JjDXqoI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XS+o3KuUQ6WnA7vrD2Xj0FI4uKOLCn9fkFPKTb0kbp+I8nJ3yB1ecU+5fgHYW01FC bbRHr4+HF8mNBTfh7DQyUKA4bOi4d98SOgMC/bLfLzd8VcX/b5gSoAKU3ISVjLN/Bm gKv5LsF+3Kvvpvwyhoj5cAVLZUOemwdd++yWOMNg= From: "harris.hancock at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102051] [coroutines] ICE in gimplify_var_or_parm_decl, at gimplify.c:2848 Date: Fri, 21 Jul 2023 21:04:26 +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: 11.2.1 X-Bugzilla-Keywords: C++-coroutines, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: harris.hancock at gmail dot com X-Bugzilla-Status: WAITING 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: cc 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=3D102051 Harris Hancock changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |harris.hancock at gmail do= t com --- Comment #3 from Harris Hancock --- I have observed this bug, too, while trying to compile Cap'n Proto with coroutine support using GCC 10, 11, and 12. Like Iain, the preprocessed file which Vitali uploaded compiles for me, at least on various versions of x86-64 gcc available in Compiler Explorer. However, Vitali's reduced example, available in the first Compiler Explorer link he posted (https://godbolt.org/z/M5nfEPMKj) readily reproduces the ICE, both in Compiler Explorer on gcc trunk and also locally for me using GCC 12 distributed by Ubuntu Jammy (g++-12 (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0), using `g++-12 -o the-file.o -c the-file.i -std=3Dc++20`. The ICE disappears if we modify the following line ~Own() noexcept(false); to ~Own() noexcept(true); So, this appears to be a coroutine bug related to noexcept(false) destructo= rs, similar to Bug 95822.=