This is the mail archive of the gcc-prs@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]

c++/298: Re: nested template definition fails



>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:

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