http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58740 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- There are loads opf existing bugs regarding the lack of access checking in templates, this is almost certainly a dup of one of them