From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 69EC738582AC; Fri, 23 Feb 2024 17:56:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 69EC738582AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708710970; bh=K0bb4yz28hk+oIYhdLHvSGiO8HYhT93t0cRKbR4KIWw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BP+DKI8jt6ddNPVExUbNK1VMhKKaiWdK2Bm0ZMZrW4ENEaJiZKF9pZm0H3hEWb7AD hAREpjNhmO0khjtC04U6ShES8csatK+FpHNhNYM3MYKuM4O/AF4GxspxINQB/eRqrj jCrK7pK71GnWgtpsWumPL6RgBJZzNuoA6AtWUsw4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113083] [14 Regression][arm] ICE in fold_convert_loc, at fold-const.cc:2602 since r14-5979-g99d114c15523e0 Date: Fri, 23 Feb 2024 17:56:08 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113083 --- Comment #8 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:fdf9df9d55802e1d8ff0bd14585ea61b2bb9d798 commit r14-9158-gfdf9df9d55802e1d8ff0bd14585ea61b2bb9d798 Author: Jakub Jelinek Date: Fri Feb 23 18:55:12 2024 +0100 c++: Fix ICE due to folding a call to constructor on cdtor_returns_this arches (aka arm32) [PR113083] When targetm.cxx.cdtor_returns_this () (aka on arm32 TARGET_AAPCS_BASED) constructor is supposed to return this pointer, but when we cp_fold such a call, we don't take that into account and just INIT_EXPR the object, so we can later ICE during gimplification, because the expression doesn= 't have the right type. 2024-02-23 Jakub Jelinek PR c++/113083 * cp-gimplify.cc (cp_fold): For targetm.cxx.cdtor_returns_this = () wrap r into a COMPOUND_EXPR and return folded CALL_EXPR_ARG (x,= 0). * g++.dg/cpp0x/constexpr-113083.C: New test.=