From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3102384D153; Thu, 20 Oct 2022 18:52:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3102384D153 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666291965; bh=w4VdWScGiR40/z4yr13kwAKaIotdnoBdhRA48F1CoU4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rO+Vnv0quQwRmZ/PbBj2CY6v9KnpJ2qRmU8RO2+ZLTJSw0st6qAywyRrKyY85kANy 07dedso+Fkcktbf1RALWtiRdiTs3bHuG4SaZOOnJiH4qMVMnWTP8kivKGjDenhB1vP f3p8IcOiMtbbc5djtBakA98TYUoG+9v6ah7ZDDug= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107267] [13 Regression] ICE in cp_gimplify_init_expr, at cp/cp-gimplify.cc:253 since r13-3175-g6ffbf87ca66f4ed9 Date: Thu, 20 Oct 2022 18:52:43 +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: 13.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D107267 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #11 from Patrick Palka --- FWIW -ffold-simple-inline is sufficient to trigger the ICE, so this has something to do with cp_fold's folding of std::move. More reduced: $ cat 107267.C namespace std { template _Tp &&move(_Tp &&); } struct FindResult { FindResult(); int result; }; FindResult pop_ret =3D std::move(FindResult()); $ g++ -ffold-simple-inlines 107267.C 107267.C:10:44: internal compiler error: in cp_gimplify_init_expr, at cp/cp-gimplify.cc:253 10 | FindResult pop_ret =3D std::move(FindResult()); | ^=