------- Comment #4 from pinskia at gcc dot gnu dot org 2006-09-22 16:27 ------- No, template classes can only access their own types in that A<int> can only access the private variables of A<int> and not A<float>. If you want A<int> to access A<float>'s private variables add to the class: template<class T2> friend class A;
Which says that A<T> is a friend to A<T2>. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29184