This is the mail archive of the gcc-bugs@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]

No Subject



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


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