This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/298: Re: nested template definition fails
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/298: Re: nested template definition fails
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 9 Jun 2000 09:53:37 +0200
- References: <17318.960499725@amphipolis.cmcl.cs.cmu.edu>
- Resent-Cc: gcc-prs at gcc dot gnu dot org, kosak at cs dot cmu dot edu
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
>Number: 298
>Category: c++
>Synopsis: nested template definition fails
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: analyzed
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Fri Jun 09 01:16:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Corey Kosak <kosak@cs.cmu.edu>
>Release: 2.96
>Organization:
>Environment:
>Description:
Date: Thu, 08 Jun 2000 17:28:45 -0400
Original-Message-ID: <17318.960499725@amphipolis.cmcl.cs.cmu.edu>
$ 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 `{'
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: