This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ internal compiler error linux-i586 libstdc++-2.90.7
- To: Peter Hackenberg <phackenberg at aip dot de>
- Subject: g++ internal compiler error linux-i586 libstdc++-2.90.7
- From: Peter Hackenberg <hackenberg at nikocity dot de>
- Date: Sun, 12 Mar 2000 14:54:45 +0100 (CET)
While compiling
--------------------------------------------------------------------
#include <complex> // libstdc++-2.90.7
void foo()
{
std::complex<double> i;
i = std::complex<double>(0,1);
}
--------------------------------------------------------------------
the compiler says:
$ g++ -I /usr/include/g++-v3 -c bug.cc
bug.cc: In function `void foo()':
bug.cc:6: Internal compiler error.
bug.cc:6: Please submit a full bug report.
bug.cc:6: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
bug.cc and bug.ii.bz2 are attached.
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
$ uname -a
Linux sirius 2.2.14 #1 Wed Feb 2 18:36:30 CET 2000 i586 unknown
$ ldd /usr/bin/g++
libc.so.6 => /lib/libc.so.6 (0x40019000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
This is glibc-2.1.
The compiler has been built with:
mkdir build
cd build
../configure --prefix=/usr --enable-shared --with-gnu-as --with-gnu-ld
make bootstrap
make install
The attached bug.ii has been made with
$ g++ -v --save-temps -I /usr/include/g++-v3 -c bug.cc
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/cpp -lang-c++ -v -I /usr/include/g++-v3 -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ bug.cc bug.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-v3
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../i586-pc-linux-gnu/include
/usr/lib/gcc-lib/i586-pc-linux-gnu/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/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/cc1plus bug.ii -quiet -dumpbase bug.cc -version -o bug.s
GNU C++ version 2.95.2 19991024 (release) (i586-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
bug.cc: In function `void foo()':
bug.cc:6: Internal compiler error.
bug.cc:6: Please submit a full bug report.
bug.cc:6: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
If I left out some important information please ask.
Peter
#include <complex> // libstdc++-2.90.7
void foo()
{
std::complex<double> i;
i = std::complex<double>(0,1);
}
bug.ii.bz2