[Bug c++/40901] Access qualifiers of embedded templates are discarded
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 18 15:19:00 GMT 2011
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
More information about the Gcc-bugs
mailing list