Template bug.
Pontus Aastroem
pa@tde.lth.se
Tue Oct 3 08:24:00 GMT 2000
Hi,
The following code snippet compiled with gcc-2.95.2 on a linux 686 machine with
Mandrake 7.1 generates a parse error. It says "parse error before '>'". This
only happens if A is a template class. If A is not a template class the code
compiles fine.
Regards,
Pontus ÃÂ
ström
//----------------------------------------------------------
struct F
{
template< class T1 >
void g()
{
};
};
template< class T2 >
struct A
{
A()
{
F f;
f.g< int >();
};
};
int main()
{
return 1;
}
More information about the Gcc-bugs
mailing list