public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59815] New: Apparently bogus error: 'Outer' is already declared in this scope
@ 2014-01-14 22:00 ppluzhnikov at google dot com
  2014-01-14 22:22 ` [Bug c++/59815] " ppluzhnikov at google dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2014-01-14 22:00 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-27 18:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-14 22:00 [Bug c++/59815] New: Apparently bogus error: 'Outer' is already declared in this scope ppluzhnikov at google dot com
2014-01-14 22:22 ` [Bug c++/59815] " ppluzhnikov at google dot com
2014-01-14 22:52 ` pinskia at gcc dot gnu.org
2014-07-20 20:58 ` ppluzhnikov at google dot com
2015-03-27 19:23 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).