This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47346] access control for nested type is ignored in class template


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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]