Thread View: gnu.g++.bug
1 messages
1 total messages
Started by David Fox
Mon, 27 Nov 1989 23:44
g++-1.36.1, sun4os4, unrecognizable insn
Author: 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
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