From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B59A03938C3D; Thu, 11 Jun 2020 22:36:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B59A03938C3D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591915001; bh=9PdIoqQL82E7H7qqoPHSjWpFJNUmvP+uctzXpTvFwHU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MWpu0He0786zVFfH9cgy51Q6obegXuY49J5Y00FZqLDkg+PlFkW6FVDZL71VVYvf9 No9quyV64yLtstQITjpPWUlVuhRqu7e1ESt+vbKKiHKnNn4J5KZht1+IQcoHTlU/Ad l4Gc9moOLoYfRLlH03gAc+kFODnnZrlA5C0kMumM= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95560] [8/9/11 Regression] ICE in comptypes, at cp/typeck.c:1498 since r7-4206-g84ff4775d41b716c Date: Thu, 11 Jun 2020 22:36:39 +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.1.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: P3 X-Bugzilla-Assigned-To: mpolacek 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, 11 Jun 2020 22:36:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95560 --- Comment #8 from CVS Commits --- The releases/gcc-9 branch has been updated by Marek Polacek : https://gcc.gnu.org/g:02f6c5b711b8188c3f49a79c730911b0bd216585 commit r9-8668-g02f6c5b711b8188c3f49a79c730911b0bd216585 Author: Marek Polacek Date: Thu Jun 11 17:58:21 2020 -0400 c++: Fix ICE in check_local_shadow with enum [PR95560] Another indication that perhaps this warning is emitted too early. We crash because same_type_p gets a null type: we have an enumerator without a fixed underlying type and finish_enum_value_list hasn't yet run. So check if the type is null before calling same_type_p. PR c++/95560 * name-lookup.c (check_local_shadow): Check if types are non-null before calling same_type_p. * g++.dg/warn/Wshadow-compatible-local-3.C: New test.=