This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cc1plus internal compiler error only when compiling with -g
- To: egcs-bugs at cygnus dot com
- Subject: cc1plus internal compiler error only when compiling with -g
- From: Dan Glastonbury <Dan dot Glastonbury at adelaide dot maptek dot com dot au>
- Date: Fri, 17 Jul 1998 17:52:59 +1130
Hi,
I get an internal compiler error when attempting to compile the bit of code
at the end of this message. It only occurs when I use the -g flag. I get
the same problem when attempting to compile with egcs-1.0 as well as
gcc-2.8.1. It doesn't occur when I compile with gcc-2.7.2.1.
The compiler was configured with just `--enable-threads --prefix=/local' and
the output of config.guess is mips-sgi-irix6.3
dan@pauli/tmp% gcc -v
Reading specs from /local/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
dan@pauli/tmp% gcc -v -g -c tst3.C
tst3.C:25: Internal compiler error.
tst3.C:25: Please submit a full bug report to `egcs-bugs@cygnus.com'.
Contents of tst3.C:
- -------------------
class first
{
struct foo
{
virtual int func() = 0;
};
struct bar : public foo
{
int func();
};
struct anotherStruct
{
void func(bar* parameter);
};
anotherStruct *aMember;
};
class second
{
public:
int dummy();
};
int second::dummy()
{
}
--
Dan Glastonbury <dglaston at iname.com>
`We gave you an atomic bomb, what do you want, mermaids?'
-- I. I. Rabi to the Atomic Energy Commission