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]
Other format: [Raw text]

Re: c++/9510: Compilation fails when calling member function templatedon integer


The following reply was made to PR c++/9510; it has been noted by GNATS.

From: Martin Sebor <sebor@roguewave.com>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/9510: Compilation fails when calling member function templated
 on integer
Date: Sun, 02 Feb 2003 12:15:05 -0700

 bangerth@dealii.org wrote:
 > Synopsis: Compilation fails when calling member function templated on integer
 > 
 > State-Changed-From-To: open->closed
 > State-Changed-By: bangerth
 > State-Changed-When: Sat Feb  1 20:42:44 2003
 > State-Changed-Why:
 >     Not a bug. You need to write
 >       ms.template TemplatedMemberFunction<I_>
 >          ^^^^^^^^
 >     since the expression is template parameter dependent.
 
 ms does not depend on a template parameter, so there is no
 need for the .template suffix. It is a well-known gcc bug
 to require the redundant template keyword here (possibly
 fixed by the recent parser changes).
 
 Regards
 Martin
 
 >     
 >       Wolfgang
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9510
 


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