Possible g++ compiler bug
Charlie Zender
zender@uci.edu
Thu Oct 19 12:39:00 GMT 2000
Here is the text of the compilation error, followed by a mime-attached
foo.ii.gz file:
zender@dust:~/c++$ g++ -v -save-temps -g -Wall -c foo.cc -o foo.o
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
/usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -lang-c++ -D__GNUG__=2 -v -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -g -Wall -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ foo.cc foo.ii
GNU CPP version 2.96 20000731 (Red Hat Linux 7.0) (cpplib)
(i386 Linux/ELF)
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1plus foo.ii -quiet -dumpbase foo.cc -g -Wall -version -o foo.s
GNU C++ version 2.96 20000731 (Red Hat Linux 7.0) (i386-redhat-linux) compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.0).
/usr/include/g++-3/stl_alloc.h: In instantiation of `_Alloc_traits<pair<const string, string>, less<string> >':
/usr/include/g++-3/stl_map.h:76: instantiated from `_Rb_tree_base<pair<const string, string>, less<string> >'
/usr/include/g++-3/stl_map.h:76: instantiated from `_Rb_tree<string, pair<const string, string>, _Select1st<pair<const string, string> >, float, less<string> >'
/usr/include/g++-3/stl_map.h:76: instantiated from `map<string, string, float, less<string> >'
foo.cc:22: instantiated from here
/usr/include/g++-3/stl_alloc.h:962: no class template named `rebind' in
`struct less<string>'
/usr/include/g++-3/stl_alloc.h: In instantiation of `_Alloc_traits<_Rb_tree_node<pair<const string, string> >, less<string> >':
/usr/include/g++-3/stl_tree.h:450: instantiated from `_Rb_tree_alloc_base<pair<const string, string>, less<string>, false>'
/usr/include/g++-3/stl_map.h:76: instantiated from `_Rb_tree_base<pair<const string, string>, less<string> >'
/usr/include/g++-3/stl_map.h:76: instantiated from `_Rb_tree<string, pair<const string, string>, _Select1st<pair<const string, string> >, float, less<string> >'
/usr/include/g++-3/stl_map.h:76: instantiated from `map<string, string, float, less<string> >'
foo.cc:22: instantiated from here
/usr/include/g++-3/stl_alloc.h:962: no class template named `rebind' in
`struct less<string>'
/usr/include/g++-3/stl_tree.h: In instantiation of `_Rb_tree_alloc_base<pair<const string, string>, less<string>, false>':
/usr/include/g++-3/stl_map.h:76: instantiated from `_Rb_tree_base<pair<const string, string>, less<string> >'
/usr/include/g++-3/stl_map.h:76: instantiated from `_Rb_tree<string, pair<const string, string>, _Select1st<pair<const string, string> >, float, less<string> >'
/usr/include/g++-3/stl_map.h:76: instantiated from `map<string, string, float, less<string> >'
foo.cc:22: instantiated from here
/usr/include/g++-3/stl_tree.h:450: no type named `allocator_type' in
`struct _Alloc_traits<_Rb_tree_node<pair<const string, string> >,
less<string> >'
/usr/include/g++-3/stl_tree.h:442: no type named `allocator_type' in
`struct _Alloc_traits<pair<const string, string>, less<string> >'
/usr/include/g++-3/stl_tree.h:443: no type named `allocator_type' in
`struct _Alloc_traits<pair<const string, string>, less<string> >'
/usr/include/g++-3/stl_tree.h:446: no type named `allocator_type' in
`struct _Alloc_traits<pair<const string, string>, less<string> >'
/usr/include/g++-3/stl_tree.h: In instantiation of `_Rb_tree_base<pair<const string, string>, less<string> >':
/usr/include/g++-3/stl_map.h:76: instantiated from `_Rb_tree<string, pair<const string, string>, _Select1st<pair<const string, string> >, float, less<string> >'
/usr/include/g++-3/stl_map.h:76: instantiated from `map<string, string, float, less<string> >'
foo.cc:22: instantiated from here
/usr/include/g++-3/stl_tree.h:488: no type named `allocator_type' in
`class _Rb_tree_alloc_base<pair<const string, string>, less<string>,
false>'
/usr/include/g++-3/stl_tree.h:491: no type named `allocator_type' in
`class _Rb_tree_alloc_base<pair<const string, string>, less<string>,
false>'
/usr/include/g++-3/stl_tree.h: In instantiation of `_Rb_tree<string, pair<const string, string>, _Select1st<pair<const string, string> >, float, less<string> >':
/usr/include/g++-3/stl_map.h:76: instantiated from `map<string, string, float, less<string> >'
foo.cc:22: instantiated from here
/usr/include/g++-3/stl_tree.h:540: no type named `allocator_type' in
`struct _Rb_tree_base<pair<const string, string>, less<string> >'
/usr/include/g++-3/stl_tree.h:541: no type named `allocator_type' in
`struct _Rb_tree_base<pair<const string, string>, less<string> >'
/usr/include/g++-3/stl_tree.h:653: no type named `allocator_type' in
`struct _Rb_tree_base<pair<const string, string>, less<string> >'
/usr/include/g++-3/stl_map.h: In instantiation of `map<string, string, float, less<string> >':
foo.cc:22: instantiated from here
/usr/include/g++-3/stl_map.h:86: no type named `allocator_type' in
`class _Rb_tree<string, pair<const string, string>,
_Select1st<pair<const string, string> >, float, less<string> >'
/usr/include/g++-3/stl_map.h:93: no type named `allocator_type' in
`class _Rb_tree<string, pair<const string, string>,
_Select1st<pair<const string, string> >, float, less<string> >'
/usr/include/g++-3/stl_map.h:104: no type named `allocator_type' in
`class _Rb_tree<string, pair<const string, string>,
_Select1st<pair<const string, string> >, float, less<string> >'
/usr/include/g++-3/stl_map.h:104: Internal error: Segmentation fault.
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.ii.gz
Type: application/x-gzip
Size: 34081 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001019/479cdc22/attachment.bin>
More information about the Gcc-bugs
mailing list