From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B6A4A3858D37; Sun, 12 Jul 2020 09:30:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B6A4A3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594546229; bh=I5lytBH3rEGi0CfIawusOR3xnbelIn/gNwyVBY/VYy0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cx7LEyjYyNzArf7pzIjyGFCCQpE5Wgf6U1N6jl3NVBqLRsm/HT27uLrLOBdljtZ8W qWm+lZC67KjFhq24TD/4nfAkBLUc0xC2i3bckta265e/dRPYm0xyyzx2NaLo8vdpao c2C7Ntjlv40U25kF3iO4CM0O5r78+3OEtF0vR/T0= From: "familiebaumanns at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96141] ICE in gimplify: Coroutine and noexcept(false) destructor cause: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2817 Date: Sun, 12 Jul 2020 09:30:29 +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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: familiebaumanns 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 09:30:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96141 --- Comment #3 from Bernd Baumanns --- Is there something missing in that if? What must be changed? This is assert fails: /* ??? If this is a local variable, and it has not been seen in any outer BIND_EXPR, then it's probably the result of a duplicate declaration, for which we've already issued an error. It would be really nice if the front end wouldn't leak these at all. Currently the only known culprit is C++ destructors, as seen in g++.old-deja/g++.jason/binding.C. */ if (VAR_P (decl) && !DECL_SEEN_IN_BIND_EXPR_P (decl) && !TREE_STATIC (decl) && !DECL_EXTERNAL (decl) && decl_function_context (decl) =3D=3D current_function_decl) { gcc_assert (seen_error ()); return GS_ERROR; }=