Error detection with templates and STL
HÃÂ¥kan Källberg
hk@simulina.se
Wed Oct 7 11:09:00 GMT 1998
Hello!
The program below is in error, but the g++ should probably
be able to detect it.
Regards: HÃÂ¥kan
PS B.t.w. - Thank you very much for a very good compiler!!
----< error.cc >----
#include <set>
template< class T >
class A {};
set<A> x;
----< error.cc >----
% g++ -v
Reading specs from
/usr/local/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
% uname -a
Linux 2.0.35 #16 Tue Sep 29 10:54:36 MEST 1998 i586 unknown
% ls -l /usr/local/lib/libstdc++.so
<...> /usr/local/lib/libstdc++.so -> libstdc++.so.2.9.0*
% gcc error.cc
error.cc:6: Internal compiler error.
error.cc:6: Please submit a full bug report to `egcs-bugs@cygnus.com'.
--
HÃÂ¥kan Källberg Tel: +49-6203-92 20 41
Simulina GmbH Fax: 92 20 42
SchmezerstraÃÂe 20 Mobil: +49-171-600 20 62
D-68526 LADENBURG E-mail: hk@simulina.se
www.ncc-mannheim.net/simulina
More information about the Gcc-bugs
mailing list