This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
2.95.2 internal compiler error on (empty) { } body of C++ constructor
- To: gcc-bugs at gcc dot gnu dot org
- Subject: 2.95.2 internal compiler error on (empty) { } body of C++ constructor
- From: Jonathan Thornburg <jthorn at davinci dot thp dot univie dot ac dot at>
- Date: Sat, 25 Dec 1999 20:05:39 +0100 (CET)
- cc: Jonathan Thornburg <jthorn at galileo dot thp dot univie dot ac dot at>
This is a bug report for g++ version 2.95.2 19991024 (release),
running on an i586-pc-linux-gnu system.
The bug is that g++ reports an internal compiler error on the
(empty) { } body of a C++ constructor. So far as I know, the code
in question is legal C++.
I built this g++ from the source tarball, using another gcc to bootstrap,
with the commands
../gcc-2.95.2/configure --prefix=/usr/local/share2 --enable-shared \
--enable-haifa --enable-languages='c++,f77'
make CFLAGS='-O9' LIBCFLAGS='-g -O9' \
LIBCXXFLAGS='-g -O9 -fno-implicit-templates' bootstrap
make install
Here is a script(1) transcript of invoking the internal compiler error:
Script started on Sat Dec 25 19:49:34 1999
% /usr/local/share2/bin/g++ --version
2.95.2
% /usr/local/share2/bin/g++ -fsyntax-only -nostdlib -Wall -W -I/home/jthorn grid.cc
grid.cc: In method `grid_arrays::grid_arrays(const grid_arrays::gfn_ranges &, const grid_arrays::radial_pars &, const grid_arrays::angular_pars &)':
grid.cc:77: Internal compiler error.
grid.cc:77: Please submit a full bug report.
grid.cc:77: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
% /usr/local/share2/bin/g++ -v -save-temps -fsyntax-only -nostdlib -Wall -W -I/home/jthorn grid.cc
Reading specs from /usr/local/share2/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/local/share2/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/cpp -lang-c++ -v -I/home/jthorn -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 -Wall -W -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ grid.cc grid.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/home/jthorn
/usr/local/share2/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3
/usr/local/include
/usr/local/share2/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../i586-pc-linux-gnu/include
/usr/local/share2/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/local/share2/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/cc1plus grid.ii -quiet -dumpbase grid.cc -Wall -W -version -fsyntax-only -o grid.s
GNU C++ version 2.95.2 19991024 (release) (i586-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
grid.cc: In method `grid_arrays::grid_arrays(const grid_arrays::gfn_ranges &, const grid_arrays::radial_pars &, const grid_arrays::angular_pars &)':
grid.cc:77: Internal compiler error.
grid.cc:77: Please submit a full bug report.
grid.cc:77: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
% exit
Script done on Sat Dec 25 19:50:48 1999
I am including the gzipped preprocessed source code in question
(grid.ii.gz) as a MIME attachment. I could also easily supply the
original source files if desired.
Thank you,
--
-- Jonathan Thornburg <jthorn@galileo.thp.univie.ac.at>
http://www.thp.univie.ac.at/~jthorn/home.html
Universitaet Wien (Vienna, Austria) / Institut fuer Theoretische Physik
"Stocks are now at what looks like a permanent high plateau" -- noted
economist Irving Fisher, 2 weeks before the 1929 stock market crash
grid.ii.gz