From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A567E3858D35; Tue, 25 Apr 2023 17:24:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A567E3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682443477; bh=4tFoJ6Z3/E+O7UWSq9CyN2gDT50inrE7foXiGHjY6CQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Us+R46Kxkk5GGOjT1YB9APReZbyyWDf8+9hOTCZfCMLRmLDwvwjZRSmXDIyv+yAAd pwtRbCURGuljYkeOValilBa3/iDH1ellat/h+bXRyPR9ntsR2DrRzjzMNrXDAs3Yym YUae0oSRIe2AjQSCUFZo+Ne+ENhlIHAUdZeXAZFc= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109621] [10/11/12/13/14 Regression] GCC accepts invalid program with multiple using declarations Date: Tue, 25 Apr 2023 17:24:37 +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: 13.1.1 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: 10.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109621 --- Comment #2 from Jonathan Wakely --- Possibly started with=20 re PR c++/31749 (ICE with invalid redeclaration of builtin) PR c++/31749 gcc/cp/ * name-lookup.c (do_nonmember_using_decl): Shift implicit type declarations into appropriate slots for comparison. Fix type comparison. gcc/testsuite/ * g++.dg/lookup/builtin3.C: New test. * g++.dg/lookup/builtin4.C: New test. * g++.dg/lookup/using19.C: New test. From-SVN: r127600 Or something before that and after r127526.=