Article View: gnu.g++.bug
Article #1120g++-2.3.1: Internal compiler error: program cc1plus got fatal signal 11
From: Larry Augustin
Date: Tue, 10 Nov 1992 18:21
Date: Tue, 10 Nov 1992 18:21
67 lines
2510 bytes
2510 bytes
g++ 2.3.1 gave me an internal compiler error. Example follows. SunOS
4.1.2, SS 2.
Larry
Larry M. Augustin ERL 414, M/C 4055
lma@dayton.stanford.edu Computer Systems Lab
+1 415.723.9285 (voice) Stanford University
+1 415.725.7398 (fax) Stanford, CA 94305
dayton> g++ -v -c bug.cc
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.1/specs
gcc version 2.3.1
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix bug.cc /usr/tmp/cca18449.i
GNU CPP version 2.3.1 (sparc)
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.1/cc1plus /usr/tmp/cca18449.i -quiet -dumpbase bug.cc -version -o /usr/tmp/cca18449.s
GNU C++ version 2.3.1 (sparc) compiled by GNU C version 2.3.1.
/usr/local/bin/gcc: Internal compiler error: program cc1plus got fatal signal 11
File bug.cc:
class PP {
int row = 0, col = 0, indent_amount = 4;
public:
PP() {};
int linewidth = 80;
int indent_level = 0;
void nl();
void put(char *s);
};
class Node {
private:
Node *parent;
Node *brother;
Node *child;
int nkids;
protected:
static PP &pp;
public:
static const char *version;
// constructors
Node();
// destructors
virtual ~Node();
// other access functions
Node *GetNthSon(int); // get the nth son of the node
void SetNthSon(int, Node *); // set the nth son
void SetSon(Node *); // set the first son
void AppendSon(Node *); // add a son to the list of sons
Node *GetBrother(); // get the nodes brother
void AddBrother(Node *); // add a brother
int GetNkids() { // return the number of sons
return nkids;
};
Node *GetParent() { // return the nodes parent
return parent;
};
Node *Copy(); // make a copy of the node
//
virtual char *Info();
//
virtual void Print();
};
PP &Node::pp = PP();
Technical Details
Message-ID:
<lma.721419703@dayton.Stanford.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!dayton.stanford.edu!lmaShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!dayton.stanford.edu!lma From: lma@dayton.stanford.edu (Larry Augustin) Subject: g++-2.3.1: Internal compiler error: program cc1plus got fatal signal 11 Message-ID: <lma.721419703@dayton.Stanford.EDU> Sender: gnulists@ai.mit.edu Organization: DSO, Stanford University Distribution: gnu Date: Tue, 10 Nov 1992 18:21:43 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 68