bug report

Marc Pickett I pickett@refuge.Colorado.EDU
Fri Oct 23 15:05:00 GMT 1998


A happy joy bug report,  keep up the good work!

	I am,
	Marc Pickett I



lief:ai|233> g++ --version
egcs-2.90.27 980315 (egcs-1.0.2 release)


lief:ai|234> g++ main.cxx ArrayOps.o tic_tac_toe.o int_vector.o -o main -lmIn file included from list.h:128,
                 from main.cxx:3:
list.template:240: Internal compiler error.
list.template:240: Please submit a full bug report to `egcs-bugs@cygnus.com'.


Here's the line in question:

//  Reads new elements, adds them to the current list.
template <class ElementType>
istream& operator >><> (istream& ins, List<ElementType>& a) {
  List<ElementType>::ElementType element;
  cin >> element;
  a += element;
  return ins;
}

This compiled with an earlier version.  The compiler 1st said to put
"<>" after the function name when it was defined in list.h:

  friend istream& operator >><> (istream& ins, List<ElementType>& a);






More information about the Gcc-bugs mailing list