From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DF18938708AE; Tue, 25 Jun 2024 16:59:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF18938708AE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719334799; bh=fMbzzQ/ra+RWS5o+AQyM/sfJqMw6LsDm6Z3jjluns2I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LLctZRNe7M+tb7KsSWJCIRetm8okbHff0qMHlc49/lDeB3hd/3djgw005jI/g/b3r en+o/vh8ReA3r25JZ7v/e4Aj/HVeRmkfw/vHUqd1lTfXH11DGSSwhVgC0RCrAcw1HU l/WrP0P9ovq3v9K+tffzlhZWkEn2vZW3xWVfe7Ho= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/115644] [gcc][trunk] ICE if redeclare a variable with different type Date: Tue, 25 Jun 2024 16:59:59 +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: 15.0 X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115644 --- Comment #2 from Andrew Pinski --- (In reply to wierton from comment #1) > This crash seems to be the same cause: https://gcc.godbolt.org/z/6br3xoaKG Related in the sense redeclaring the variable with a different type changes= the the underlying type of the decl to error_mark_node which the rest of the compiler is not always ready to handle. (there a few other bug reports which was caused by the same thing too).=