This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64961] New: nested template implementation crossing namespace fails with access error
- From: "eugene at hutorny dot in.ua" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 Feb 2015 14:05:16 +0000
- Subject: [Bug c++/64961] New: nested template implementation crossing namespace fails with access error
- Auto-submitted: auto-generated
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.