internal compiler error

Dave Steffen steffend@lamar.colostate.edu
Mon Oct 26 22:44:00 GMT 1998


Hi Folks,

   EGCS 1.1b (gcc version egcs-2.91.57 19980901 (egcs-1.1 release))
   generates an internal compiler error when confronted with the
   following (incorrect code):


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

//@@ this can probably be made more efficient.
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!!! 
                           // of course, that was supposed to 
			   // be set<K> keys = ....
}

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





   Compiling that generates the following output:

helicon : c++ -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'.


Thanks for the compiler!

--------------------------------------------------------------------------
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