[Bug c++/12429] Template class Foo<X> cannot access private members of Foo<Y>
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 27 03:27:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12429
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-27 01:54 -------
I think the code is invalid as different specialization are really different classes.
The way to fix this is make Foo<int> a friend.
More information about the Gcc-bugs
mailing list