This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12429] Template class Foo<X> cannot access private members of Foo<Y>
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2003 01:54:39 -0000
- Subject: [Bug c++/12429] Template class Foo<X> cannot access private members of Foo<Y>
- References: <20030927014658.12429.sean.gies@discreet.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.