This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
code crashes eg++-1.1 on i686-pc-linux-gnulibc1
- To: egcs-bugs at cygnus dot com
- Subject: code crashes eg++-1.1 on i686-pc-linux-gnulibc1
- From: Benjamin Scarlet <scarlet at ctpmspiggy dot mit dot edu>
- Date: Mon, 28 Sep 1998 11:00:15 -0400
I just downloaded, compiled, and tried egcs-1.1. It died when I tried
to use it. I've stripped down the code snippet that caused it to
fail. See below.
I'm using a Redhat 4.2 Linux Pentium II system, and used gcc-2.7.2.1
to compile egcs.
The following code causes g++ to die (I skipped preprocessing and
compressing this because there are no includes):
------------------------------------------------------------
template <class T>
class typedefing_template_parent
{
public:
typedef int bloop;
};
template <class T>
class template_child : public typedefing_template_parent<T>
{
public:
class typedef_using_contained_class
{
bloop t;
};
};
------------------------------------------------------------
I get:
------------------------------------------------------------
prompt$ g++ -v -c foo.cc -o foo.o
Reading specs from /home/scarlet/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
/home/scarlet/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.57/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ foo.cc /tmp/cclv5R2k.ii
GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/home/scarlet/include
/home/scarlet/local/include/g++
/home/scarlet/local/i686-pc-linux-gnulibc1/include
/home/scarlet/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.57/include
/usr/include
End of search list.
/home/scarlet/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.57/cc1plus /tmp/cclv5R2k.ii -quiet -dumpbase foo.cc -version -o /tmp/cca3GR6C.s
GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release) (i686-pc-linux-gnulibc1) compiled by GNU C version 2.7.2.1.
g++: Internal compiler error: program cc1plus got fatal signal 11
------------------------------------------------------------
Thanks,
Benjamin Scarlet
MIT Center for Theoretical Physics
scarlet@mit.edu