From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5636 invoked by alias); 10 Jan 2015 16:46:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5547 invoked by uid 48); 10 Jan 2015 16:46:09 -0000 From: "ville.voutilainen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/32039] Using declaration accepts non-visible members from base classes Date: Sat, 10 Jan 2015 16:46:00 -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: 4.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ville.voutilainen at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: fabien at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00687.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32039 Ville Voutilainen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |ville.voutilainen at gmail dot com Resolution|--- |INVALID --- Comment #7 from Ville Voutilainen --- This is invalid. [namespace.udecl]/3 says that if the declaration names a constructor, the nested-name-specifier shall name a direct base, but if the declaration names something else than a constructor, indirect bases are fine. The name is looked up by member name lookup, which will look in A first, and the hiding in B does not matter. Clang agrees with this interpretation.