egcs-current internal error

Peter Simons simons@cys.de
Wed Mar 3 04:32:00 GMT 1999


Hi,

while compiling the following program:

   #include <iostream>
   #include <string>
   #include <rope>

   typedef crope String;

   String
   test(String s)
   {
       String res;
       res = s + "ja";
       return res;
   }

   int
   main()
   {
       String res("test: ");
       for (int i = 0; i < 10000; ++i) {
	   String s("claus");
	   s += "jau";
	   res += s;
	   res = test(res);
       }
   }

with the latest g++ (egcs-2.93.09), I got the following errors:

/usr/local/egcs/include/g++-2/ropeimpl.h: In function `static struct _Rope_RopeRep<char,allocator<char> > * rope<char,allocator<char> >::_S_balance(struct _Rope_RopeRep<char,allocator<char> > *)':
/usr/local/egcs/include/g++-2/ropeimpl.h:458: instantiated from `rope<char,allocator<char> >::_S_tree_concat(_Rope_RopeRep<char,allocator<char> > *, _Rope_RopeRep<char,allocator<char> > *)'
/usr/local/egcs/include/g++-2/ropeimpl.h:508: instantiated from `rope<char,allocator<char> >::_S_concat_char_iter(_Rope_RopeRep<char,allocator<char> > *, const char *, unsigned int)'
/usr/local/egcs/include/g++-2/stl_rope.h:2426: instantiated from here
/usr/local/egcs/include/g++-2/ropeimpl.h:1082: Internal compiler error.
/usr/local/egcs/include/g++-2/ropeimpl.h:1082: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.

I am working on NetBSD/i386 1.3.2.

	-peter


More information about the Gcc-bugs mailing list