No Subject
Rich Lee
llee1@lsc.nd.edu
Sun Jul 26 14:40:00 GMT 1998
Code: (which is compiled correctly by KCC.)
-----------------------------------------
#define ITER 3
template < class T >
inline T playee(T& a)
{
return a + 1;
}
double player( double a, double (*f)(double&) )
{
for (int i=0; i<ITER; i++) a = f(a);
return a + 1;
}
int main()
{
double a = 1.0;
double b = player(a, playee<double>);
return 0;
}
-----------------------------------------
compiling error message:
Internal compiler error 980715.
-----------------------------------------
g++ --version
egcs-2.91.51
--Rich
More information about the Gcc-bugs
mailing list