internal compiler error 364
I Lee Hetherington
ilh@sls.lcs.mit.edu
Fri Apr 10 12:56:00 GMT 1998
The following short program causes internal compiler error 364:
#include <vector>
int main()
{
int i = 1;
vector<int&> v;
v.push_back(i);
}
(I'm not sure it is kosher to put references in an STL vector, but it
does crash the compiler.) Here is the compiler output:
g++ -v -Wall test_vec.cpp
Reading specs from
/usr/local/egcs/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
/usr/local/egcs/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.27/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=90 -Di386 -D__ELF__ -Dunix -Dlinux -D__i386__
-D__ELF__ -D__unix__ -D__linux__ -D__i386 -D__unix -D__linux
-Asystem(posix) -D__EXCEPTIONS -Wall -Di386 -Di586 -Asystem(unix)
-Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix)
-Acpu(i386) -Amachine(i386) test_vec.cpp /vtmp/cca24549.ii
GNU CPP version egcs-2.90.27 980315 (egcs-1.0.2 release) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/egcs/include/g++
/usr/local/include
/usr/local/egcs/i586-pc-linux-gnu/include
/usr/local/egcs/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.27/include
/usr/include
End of search list.
/usr/local/egcs/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.27/cc1plus
/vtmp/cca24549.ii -quiet -dumpbase test_vec.cc -Wall -version -o
/vtmp/cca24549.s
GNU C++ version egcs-2.90.27 980315 (egcs-1.0.2 release)
(i586-pc-linux-gnu) compiled by GNU C version 2.8.1.
/usr/local/egcs/include/g++/stl_vector.h: In method `void
vector<int &,__default_alloc_template<true,0> >::push_back(int
&const &)':
/usr/local/egcs/include/g++/stl_vector.h:146: Internal compiler
error 364.
/usr/local/egcs/include/g++/stl_vector.h:146: Please submit a full
bug report to `egcs-bugs@cygnus.com'.
--Lee Hetherington
More information about the Gcc-bugs
mailing list