crash when friend function defines template specialization

Ian Haggard ian@shellus.com
Tue Feb 24 14:20:00 GMT 1998


I was able to further refine my example program.  The following (even smaller)
program gives me an internal compiler error:

template<class T>
void foo(const T& t);

template <class dim>
struct A {
  friend void foo<>(const A<dim> & t)
#ifdef NO_CRASH
  ;
#else
  {} // Internal compiler error on this line
#endif
};

A<int> bar();

-- 
Ian Haggard  ||  ian@shellus.com (work)  ||  IanHaggard@juno.com (home)
GNU/Linux -- "Oh, no, Mr Bill!" || #define employer_opinion !my_opinion



More information about the Gcc-bugs mailing list