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]

Internal compiler error


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.0. It doesn't occur when I compile with gcc-2.7.2.1.

The compiler was configured with just `--prefix=/local' and the output
of config.guess is mips-sgi-irix6.3

chris@pauli/tmp% g++ -v
Reading specs from /local/lib/gcc-lib/mips-sgi-irix6.3/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)

chris@pauli/tmp% g++ -g -c tst3.C
tst3.C:26: Internal compiler error.
tst3.C:26: 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()
{
}



--
Chris.Yeoh@maptek.com.au


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