This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52618] Explicit template specialization ignores access rights
- 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: Mon, 19 Mar 2012 15:06:31 +0000
- Subject: [Bug c++/52618] Explicit template specialization ignores access rights
- Auto-submitted: auto-generated
- References: <bug-52618-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52618
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-19
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-19 15:06:31 UTC ---
Confirmed, this is one of many access-checking bugs in templates, see PR 47346
Reduced:
class B {
typedef double type; // this is a private member
};
template<class T> struct get_type;
template<> struct get_type<B> {
typedef typename B::type type;
};
typedef typename get_type<B>::type sometype;