[gnu.g++.bug] Program cc1plus got fatal signal 11

perm@mizar.docs.uu.se (Per Mildner) (05/25/89)

I'm Per-Mildner@AIDA.CSD.UU.SE

 Configuration:
SUN 4 with OS 4
tm.h -> config/tm-sparc+.h
md -> config/sparc.md
g++ version 1.35.0
g++ -Wall -O program.cc

// compiling below program craches g++: Program cc1plus got fatal signal 11
class Machine {
};

char* Instruction::name() {
  return "illegal instruction";
  friend class Machine;
};

void Instruction::interpret(Machine& machine) {
  error("Not defined: instruction.interpret");
};
void Instruction::interpret_R_mode(Machine& machine) {

/*
mizar 43% g++ -Wall -O bug.cc
ld++: malformed input file (not rel or archive) test/signal-11-bug.txt
mizar 44% g++ -Wall -O bug.cc
bug.cc:5: `Instruction' fails to be an aggregate typedef
In function char *name ():
bug.cc:7: warning: empty declaration
At top level:
bug.cc:10: `Instruction' fails to be an aggregate typedef
In function void interpret (struct Machine &):
bug.cc:11: warning: implicit declaration of function `error'
At top level:
bug.cc:13: `Instruction' fails to be an aggregate typedef
At top level:
bug.cc:13: Segmentation violation
g++: Program cc1plus got fatal signal 11.
mizar 45% 
*/