This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40901] Access qualifiers of embedded templates are discarded
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Jan 2011 15:08:08 +0000
- Subject: [Bug c++/40901] Access qualifiers of embedded templates are discarded
- Auto-submitted: auto-generated
- References: <bug-40901-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40901
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-18 15:07:56 UTC ---
access control isn't done for a nested-name-specifier
class C
{
struct Private { };
};
template<typename T>
struct exploit
{
typedef T type;
};
exploit<C::Private>::type x2; // should be an error