public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64961] New: nested template implementation crossing namespace fails with access error
@ 2015-02-06 14:05 eugene at hutorny dot in.ua
  2015-02-10 13:37 ` [Bug c++/64961] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: eugene at hutorny dot in.ua @ 2015-02-06 14:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64961

            Bug ID: 64961
           Summary: nested template implementation crossing namespace
                    fails with access error
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eugene at hutorny dot in.ua

Created attachment 34686
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34686&action=edit
code sample illustrating the issue

Consider a case:
a template with protected nested structure (Foo<>::Fo) is defined in one
namespace (foo),  and instantiated in another namespace (bar) via inheritance.

Specialization of nested templates methods fails with access error.
Compare to specialization of a outer template's method placed in exactly the
same scope and compiled with success.


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

end of thread, other threads:[~2021-12-10  7:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-06 14:05 [Bug c++/64961] New: nested template implementation crossing namespace fails with access error eugene at hutorny dot in.ua
2015-02-10 13:37 ` [Bug c++/64961] " redi at gcc dot gnu.org
2015-02-10 13:39 ` redi at gcc dot gnu.org
2015-02-10 14:15 ` eugene at hutorny dot in.ua
2015-02-10 16:49 ` redi at gcc dot gnu.org
2021-12-10  7:35 ` pinskia at gcc dot gnu.org

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).