This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with nested template class.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]