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]

fibionacci bug



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/

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