From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EBAF23959C6C; Thu, 23 Apr 2020 18:05:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBAF23959C6C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587665122; bh=E46uh96ea3KEw3g52Dork7Z6vcIoUfFO0S76sYfI5Og=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a1oPAhao4y8gk9iHwPIPboes2PqEbCkVC148FHpqFqn8mQ6vfEmaDEO++dulljVZ/ 4NKFvt7qVxRYU05qVO+DKpgSluBVnlNz+RSKHh+fKTIHFeJvDpTCNlJYwwv4E9eIbG OtierRuxmwiYU8pU2vXPpbW9PEmDUiYBbHXIpzbE= From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/94730] [8/9/10 Regression] internal compiler error: in fold_convert_loc, at fold-const.c:2435 Date: Thu, 23 Apr 2020 18:05:22 +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: 10.0 X-Bugzilla-Keywords: error-recovery X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 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: Thu, 23 Apr 2020 18:05:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94730 --- Comment #3 from joseph at codesourcery dot com --- I'd suspect the code in finish_decl that deals with types determined from=20 array initializers ("For global variables, update the copy of the type=20 that exists in the binding.") of being involved here. if (b_ext->u.type && comptypes (b_ext->u.type, type)) b_ext->u.type =3D composite_type (b_ext->u.type, type); else b_ext->u.type =3D type; If the new type isn't compatible with the existing type of the=20 declaration, it should probably not be stored in b_ext->u.type.=