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
* [Bug c++/59815] Apparently bogus error: 'Outer' is already declared in this scope 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 ` ppluzhnikov at google dot com 2014-01-14 22:52 ` pinskia at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: ppluzhnikov at google dot com @ 2014-01-14 22:22 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59815 --- Comment #1 from Paul Pluzhnikov <ppluzhnikov at google dot com> --- Slightly more reduced test: namespace foo { template < typename > class A { template < typename > friend class Outer; }; A<int> a; // comment out -> bug goes away. template < typename > class Outer; } using foo::Outer; ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/59815] Apparently bogus error: 'Outer' is already declared in this scope 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 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2014-01-14 22:52 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59815 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think this is a duplicate of bug 37804. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/59815] Apparently bogus error: 'Outer' is already declared in this scope 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 3 siblings, 0 replies; 5+ messages in thread From: ppluzhnikov at google dot com @ 2014-07-20 20:58 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59815 --- Comment #3 from Paul Pluzhnikov <ppluzhnikov at google dot com> --- Still broken @r212875 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/59815] Apparently bogus error: 'Outer' is already declared in this scope 2014-01-14 22:00 [Bug c++/59815] New: Apparently bogus error: 'Outer' is already declared in this scope ppluzhnikov at google dot com ` (2 preceding siblings ...) 2014-07-20 20:58 ` ppluzhnikov at google dot com @ 2015-03-27 19:23 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2015-03-27 19:23 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59815 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-03-27 Blocks| |65608 Ever confirmed|0 |1 ^ 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).