This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
No Subject
- To: egcs-bugs at cygnus dot com
- From: Rich Lee <llee1 at lsc dot nd dot edu>
- Date: Sun, 26 Jul 1998 16:40:24 -0500 (EST)
- Reply-To: llee1 at lsc dot nd dot edu
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