This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
nested template definition fails
- To: bug-gcc at gnu dot org
- Subject: nested template definition fails
- From: Corey Kosak <kosak at cs dot cmu dot edu>
- Date: Thu, 08 Jun 2000 17:28:45 -0400
$ 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 `{'