From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8835A3858D1E; Wed, 1 Nov 2023 17:02:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8835A3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698858162; bh=4Blt/Nw0HSa6FivwTdz/OdAzqm/EWb6ReSVmKbK9ZFM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ulYbQzDSwoOR83l3JwGQMgbikltqw8G05Uivwxw1OYOSDMRqQudUIp5j8iRauY8pb fv5P2+Q1KLQvxm6+WQ19ke27RTQas9/aA0Bh5lQ8/NsglVxN668d2nufhtkI0Pj6aC OT9Bjhp/keIKXMY5X64Zv7EubmuybQ2ERAV+yMUE= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111921] [11/12/13/14 Regression] ICE with nested function after an error since r6-205-g5c4abbb8e80153 Date: Wed, 01 Nov 2023 17:02:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc keywords 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=3D111921 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[11/12/13/14 Regression] |[11/12/13/14 Regression] |ICE with nested function |ICE with nested function |after an error |after an error since | |r6-205-g5c4abbb8e80153 Keywords|needs-bisection | CC| |mpolacek at gcc dot gnu.org --- Comment #4 from Thomas Koenig --- Bisection finally found the relevant patch: r6-205-g5c4abbb8e80153 5c4abbb8e80153999b0298e4b2fe81d512f133c8 is the first bad commit commit 5c4abbb8e80153999b0298e4b2fe81d512f133c8 Author: Marek Polacek Date: Thu Apr 23 14:35:12 2015 +0000 re PR c/65345 (ICE with _Generic selection on _Atomic int) PR c/65345 * c-decl.c (set_labels_context_r): New function. (store_parm_decls): Call it via walk_tree_without_duplicates. * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw instead of create_tmp_var. Build TARGET_EXPR instead of COMPOUND_EXPR. (build_atomic_assign): Use create_tmp_var_raw instead of create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR. * gcc.dg/pr65345-1.c: New test. * gcc.dg/pr65345-2.c: New test. From-SVN: r222370 Bisection actually needed a patch for bootstrap to succeed: diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf index 68acd3d..5ecf86a 100644 --- a/gcc/cp/cfns.gperf +++ b/gcc/cp/cfns.gperf @@ -23,7 +23,7 @@ static unsigned int hash (const char *, unsigned int); #ifdef __GNUC__ __inline #endif -const char * libc_name_p (const char *, unsigned int); +# const char * libc_name_p (const char *, unsigned int); %} %% # The standard C library functions, for feeding to gperf; the result is us= ed diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h index 1c6665d..ee38f6a 100644 --- a/gcc/cp/cfns.h +++ b/gcc/cp/cfns.h @@ -51,9 +51,6 @@ along with GCC; see the file COPYING3. If not see __inline #endif static unsigned int hash (const char *, unsigned int); -#ifdef __GNUC__ -__inline -#endif const char * libc_name_p (const char *, unsigned int); /* maximum key range =3D 391, duplicates =3D 0 */=