internal compiler error (again)

Dave Steffen steffend@lamar.colostate.edu
Tue Oct 27 11:46:00 GMT 1998


Hi Folks,

My apologies, my first post on this bug seems to have gotten garbled;
here it is again.

FWIW, the platform is Linux (RedHat 5.1)
Compiler version is egcs-2.91.57 19980901 (egcs-1.1 release)

The following (incorrect) code produces an internal compiler error:

#include <set.h>
#include <map.h>

template <class K, class T>
map<K,set<T> > Assign_Union (map<K, set<T> >& A, 
			     const map<K, set<T> >& B)
{
  set<Key> keys = Keys(A); // BOOM!
}

int main()
{
  cout << "Hi There" << endl;
}


The compiler output looks like this:

c++ -ansi -gstabs -Wall   -I/opt/egcs/lib/Dave   -c check.C

check.C: In function `class map<K,set<T,less<T>,__default_alloc_template<true,0
> >,less<T>,__default_alloc_template<true,0> > Assign_Union(class 
map<K,set<T,less<T>,__default_alloc_template<true,0> >,less<T>
,__default_alloc_template<true,0> > &, const class map<K,set<T,less<T>
,__default_alloc_template<true,0> >,less<T>,__default_alloc_template<true,0> > 
&)':
check.C:8: Internal compiler error.
check.C:8: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [check.o] Error 1


--------------------------------------------------------------------------
Dave Steffen                      Wave after wave will flow with the tide
Dept. of Physics                    And bury the world as it does
Colorado State University         Tide after tide will flow and recede
steffend@lamar.colostate.edu        Leaving life to go on as it was...
							- Peart / RUSH
"The reason that our people suffer in this way.... 
is that our ancestors failed to rule wisely".   -General Choi, Hong Hi








More information about the Gcc-bugs mailing list