Article View: gnu.g++.bug
Article #628g++-1.36.1, sun4os4, unrecognizable insn
From: David Fox
Date: Mon, 27 Nov 1989 23:44
Date: Mon, 27 Nov 1989 23:44
56 lines
1651 bytes
1651 bytes
The following program causes a compiler crash. Hopefully it
is not due to my minor compiler mods.
------------- bug.cc ----------------
class Object {
public:
virtual int foo(int n);
};
class Pointer : public Object {
Object* _object;
public:
};
typedef struct {
int timestamp;
int first_line;
int first_column;
int last_line;
int last_column;
char *text;
} yyltype;
short *yyr2;
int
yyparse()
{
Pointer *yyvsp;
yyltype yylsa[200 ];
Pointer yyval;
int yylen;
yylen = yyr2[0];
yyval = yyvsp[1-yylen];
}
-------------------------------------
------------ output -----------------
cd /usr/fox/src/ntrees/
gmake bug.o
g++-1.36.1 -g -I/usr/fox/include -c bug.cc -o bug.o
bug.cc: In function int yyparse ():
bug.cc:32: The following insn was not recognizable:
(insn 17 16 18 (set (mem:SI (plus:SI (reg:SI 30)
(const_int -4844)))
(mem/s:SI (plus:SI (reg:SI 30)
(reg:SI 68)))) -1 (nil)
(nil))
g++-1.36.1: Program cc1plus got fatal signal 6.
gmake: *** [bug.o] Error 1
Compilation exited abnormally with code 1 at Mon Nov 27 18:41:24
-------------------------------------
David Fox
fox@allegra.att.com
Technical Details
Message-ID:
<8911272344.AA23121@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!allegra.tempo.nj.att.com!foxShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!allegra.tempo.nj.att.com!fox From: fox@allegra.tempo.nj.att.com (David Fox) Newsgroups: gnu.g++.bug Subject: g++-1.36.1, sun4os4, unrecognizable insn Message-ID: <8911272344.AA23121@life.ai.mit.edu> Date: 27 Nov 89 23:44:31 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 56