------- Comment #1 from gcc-bugzilla at contacts dot eelis dot net 2008-08-21 11:35 ------- It seems access control for templates is broken at a more basic level than the reporter's testcase suggests; witness the following simplified testcase:
class A { typedef int X; }; template <typename> struct B { A::X x; }; B<int> b; Again, g++ does not complain. Comeau rightly rejects the code, complaining that A::X is inaccessible. -- gcc-bugzilla at contacts dot eelis dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gcc-bugzilla at contacts dot | |eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36734