c++/1058: gcc version 2.95.2 produces "parse error before `>'"

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Wed Dec 13 21:16:00 GMT 2000


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

From: Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
To: haule@tkm.physik.uni-karlsruhe.de
Cc: gcc-gnats@gcc.gnu.org, Kristjan.Haule@ijs.si
Subject: Re: c++/1058: gcc version 2.95.2 produces "parse error before `>'"
Date: 14 Dec 2000 06:08:18 +0100

 haule@tkm.physik.uni-karlsruhe.de writes:
 
 [...]
 
 | template <class T>
 | void C<T>::just_function()
 | {
 |   A a;
 |   B b;
 |   a.Set<B>(3, 2.2);
 
 This is a known problem in the C++ parser: you need to say
 
 	a.template Set<B>(3, 2.2);
 
 as a work around.
 
 -- Gaby


More information about the Gcc-prs mailing list