This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12057] gcc compilation errors for nested template classes.
- From: "sharadmp at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2003 19:28:55 -0000
- Subject: [Bug c++/12057] gcc compilation errors for nested template classes.
- References: <20030825184059.12057.sharadmp@yahoo.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=12057
------- Additional Comments From sharadmp at yahoo dot com 2003-08-25 19:28 -------
This code compiles and runs fine on Solaris SunOS 5.7
We also moved the template class ArrayListImpl to the top
and compiled, but still gives the same error.
The class Itr is forward declared which I suppose is the nested class
The class also has a friend class Itr defined, so it should be able to
access the private members: