This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problem with nested template class.
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Problem with nested template class.
- From: Alexander Zvyagin <zvyagin at gams dot ihep dot su>
- Date: Sun, 22 Aug 1999 13:45:58 +0400 (MSD)
Dear GCC developers!
The following bug still present in gcc-2.95.1
-------------
class A
{
template <class T> class B {};
B<double> b; // ok.
class C
{
A::B<int> i1; // ok.
B<int> i2; // bad.
};
};
$ g++ -c bug.c
bug.c:10: `B' is not a template
bug.c:10: ANSI C++ forbids declaration `i2' with no type
With best wishes,
Alexander Zvyagin