From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23384 invoked by alias); 14 Jan 2014 22:00:59 -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 23351 invoked by uid 48); 14 Jan 2014 22:00:56 -0000 From: "ppluzhnikov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59815] New: Apparently bogus error: 'Outer' is already declared in this scope Date: Tue, 14 Jan 2014 22:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google 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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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: 2014-01/txt/msg01500.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59815 Bug ID: 59815 Summary: Apparently bogus error: 'Outer' is already declared in this scope Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppluzhnikov at google dot com Google ref: b/12471255 /// --- cut --- namespace foo { template < typename > class A { template < typename > friend class Outer; }; class B:foo::A < int > { }; template < typename > class Outer; } using foo::Outer; /// --- cut --- Using g++ (GCC) 4.9.0 20140110 (experimental): g++ -c tt.cc tt.cc:13:12: error: 'Outer' is already declared in this scope using foo::Outer; ^ Source is accepted by Clang and is believed to be valid.