fibionacci bug

Niels L Ellegaard gnalle@dirac.ruc.dk
Thu Apr 13 06:44:00 GMT 2000


Here is a program
#include <stream.h>

template<int n>
void  f(int x);

template<int n>
void f(int x){ 
  f<n + 1>(x);
};

void main(){
  cout << f<1>(1); 
  // note the second 1 is not supposed to be there
}; 

Here is the error message
fib.C:18: Internal compiler error 980715.
fib.C:18: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
fib.C:18: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.

I use
egcs-2.91.66

Have a nice day and keep up the good work

-- 
 Niels L Ellegaard

http://dirac.ruc.dk/~gnalle/


More information about the Gcc-bugs mailing list