🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Per Mildner Thu, 25 May 1989 09:19
Program cc1plus got fatal signal 11
#2037
Author: Per Mildner
Date: Thu, 25 May 1989 09:19
42 lines
1542 bytes
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% 
*/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads