This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47346] access control for nested type is ignored in class template
- From: "dodji at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Aug 2011 18:41:53 +0000
- Subject: [Bug c++/47346] access control for nested type is ignored in class template
- Auto-submitted: auto-generated
- References: <bug-47346-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47346
--- Comment #2 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-08-11 18:41:53 UTC ---
Another variation of the same theme is:
class C
{
struct Private { };
};
template<typename T>
struct exploit3
{
template<class U = C::Private>
struct E {};
};
void
bar()
{
exploit3<int>::E<> e;
}