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]

nested template definition fails



$ cat b4.cc && g++ -v && g++ b4.cc && a.out
template<class T> struct cow_t {
  template<class U> struct moo_t {
    template<class V> void func();
  };
};

template<class T>
template<class U>
template<class V>
void cow_t<T>::moo_t<U>::func()
{
}
Reading specs from /usr/local/libexec/gcc-latest-snapshot/bin/../lib/gcc-lib/i686-pc-linux/2.96/specs
gcc version 2.96 20000605 (experimental)
b4.cc:11: too many template parameter lists in declaration of
`cow_t<T>::moo_t<U>::func ()'
b4.cc:11: syntax error before `{'


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