Bug with const-template

Jan Wedekind unoh@rz.uni-karlsruhe.de
Mon Feb 14 05:38:00 GMT 2000


Jan Wedekind                                        Karlsruhe (Germany) 12.2.00

Mail to "egcs-bugs@egcs.cygnus.com":

1.Information about my system:
The compiler's version (output of "g++ -v"):
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

The library's version:  libstdc++-libc6.1-1.a.2 ( libg++ )
Output of "uname -a":
Linux wedekind 2.2.10 #12 Die Aug 31 18:31:59 MEST 1999 i586 unknown

(SuSE-distribution version 6.2)
The output of "g++ -v --save-temps test.cc" was saved in "options.i".

2.The compiler-error
Output generated by "g++ -c test.cc":
---------------
cd /home/jan/Desktop/Trash/
g++ -I/usr/lib/qt/include -c test.cc
/usr/include/g++/stl_algobase.h: In method `struct pair<const Help,map<int,int,less<int>,__default_alloc_template<true,0> > > & pair<const Help,map<int,int,less<int>,__default_alloc_template<true,0> > >::operator =(const struct pair<const Help,map<int,int,less<int>,__default_alloc_template<true,0> > > &)':
/usr/include/g++/stl_algobase.h:122: Internal compiler error 980521.
/usr/include/g++/stl_algobase.h:122: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
/usr/include/g++/stl_algobase.h:122: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.

Compilation exited abnormally with code 1 at Fri Feb 11 11:17:02
---------------

3.Hint
If I use the template class "pair<Help,map<int,int>>" without applying the
const-operator on the class "Help" (instead of
"pair<const Help,map<int,int>>") the error doesn't occur!

4.Thank You
Thank you for maintaining the "egcs"-compiler.

Greetings
		  Jan Wedekind.

+--------------------------- Jan Wedekind -------------------------+
|address         : Scheffelstrasse 65, 3.OG, D-76135 Karlsruhe     |
|email           : Jan.Wedekind@stud.uni-karlsruhe.de              |
|www             : http://www.uni-karlsruhe.de/~unoh               |
|pgp-fingerprint : EE FA AF 15 D8 ED 11 4A  5A 76 35 5F 2D 20 C4 E8|
+------------------------------------------------------------------+


-- 
+--------------------------- Jan Wedekind -------------------------+
|address         : Scheffelstrasse 65, 3.OG, D-76135 Karlsruhe     |
|phone           : (0721)8301933                                   |
|email           : Jan.Wedekind@stud.uni-karlsruhe.de              |
|www             : http://www.uni-karlsruhe.de/~unoh               |
|pgp-fingerprint : EE FA AF 15 D8 ED 11 4A  5A 76 35 5F 2D 20 C4 E8|
+------------------------------------------------------------------+


More information about the Gcc-bugs mailing list