This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cc1plus internal compiler error only when compiling with -g


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]