From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11967 invoked by alias); 23 Jan 2013 22:32:58 -0000 Received: (qmail 11949 invoked by uid 48); 23 Jan 2013 22:32:47 -0000 From: "klemensbaum at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56090] Injected-class-name treated as constructor name Date: Wed, 23 Jan 2013 22:32: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: klemensbaum at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-01/txt/msg02241.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56090 --- Comment #3 from Klemens 2013-01-23 22:32:47 UTC --- I would argue that in 3.4.3.1.2 the constructor is not an acceptable lookup result, since it would result in the code being invalid. Additionally, the following use of a type alias (where the constructor is clearly not an acceptable lookup result) does not compile on my g++-4.7.1: struct foo { using bar = foo::foo::foo; };