STL generates ICE in 2.95.2 under sparcv9

Paul Archard parchard@workfire.com
Wed Apr 12 11:19:00 GMT 2000


Hi 
all,
 
The following 
code  produces the output below compiling on a bi-arch in 64 bit mode on a 
solaris 7 under standard 2.95.2.  I've tried a recent snapshot but that 
seems to cause other, more fundemental problems.
 
I will do anything I 
can to work around this problem as I urgently need to get this working.  
Can anyone make any suggestions?  Thanks in advance.  Here's the 
code..
 
=== 
test.cpp
#include 
<vector>
main() {   vector<int> vec;   
vec.clear(); }
=== 
build
g++ 
test.cpp /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_construct.h: 
In function `void __destroy<int *, int>(int *, int *, int 
*)': /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_construct.h:81:   
instantiated from `destroy<int *>(int *, int 
*)' /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_vector.h:266:   
instantiated from `vector<int,allocator<int> 
>::~vector()' test.cpp:5:   instantiated from 
here /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_construct.h:76: 
Internal compiler error in `emit_move_insn_1', at expr.c:2754 Please submit a 
full bug report.
=== the verbose 
output:
 
g++ -v --save-temps 
test.cpp Reading specs from 
/usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/specs gcc version 
2.95.2 19991024 
(release)  /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/cpp 
-lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dsparc 
-Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ 
-D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS 
-D__SIZE_TYPE__=long unsigned int -D__PTRDIFF_TYPE__=long int -D__arch64__ 
-Acpu(sparc64) -Amachine(sparcv9) -D__sparcv9 test.cpp test.ii GNU CPP 
version 2.95.2 19991024 (release) (sparc) #include "..." search starts 
here: #include <...> search starts 
here:  /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../include/g++-3  /usr/local/gcc64/include  /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../sparcv9-sun-solaris2.7/include  /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/include  /usr/include End 
of search list. The following default directories have been omitted from the 
search path:   End of omitted 
list.  /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/cc1plus 
test.ii -quiet -dumpbase test.cc -version -o test.s GNU C++ version 2.95.2 
19991024 (release) (sparcv9-sun-solaris2.7) compiled by GNU C version 2.95.2 
19991024 
(release). /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_construct.h: 
In function `void __destroy<int *, int>(int *, int *, int 
*)': /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_construct.h:81:   
instantiated from `destroy<int *>(int *, int 
*)' /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_vector.h:266:   
instantiated from `vector<int,allocator<int> 
>::~vector()' test.cpp:5:   instantiated from 
here /usr/local/gcc64/lib/gcc-lib/sparcv9-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_construct.h:76: 
Internal compiler error in `emit_move_insn_1', at expr.c:2754 Please submit a 
full bug report
 
 
=== test.ii 
available if useful
 
 
 

Paul 
Archard
Director, Product 
Development
Workfire Development 
Corporation
( http://www.workfire.com )
+1 (250) 
717-8966
 
 



More information about the Gcc-bugs mailing list