bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parser stack overflow, bug in glr??


From: Paul Eggert
Subject: Re: parser stack overflow, bug in glr??
Date: Thu, 21 Jul 2005 10:08:19 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Roger Casaponsa <address@hidden> writes:

> I don't know what files you need. I attach all the files, sorry if it's
> too much.

It's good to attach all files, but unfortunately your email contained
just a concatenation of the files, without any indication of where one
stopped and another started.

I attempted to reconstruct the test case, and attach the result as a
gzipped tar file.  I have problems when trying to reproduce the
problem, though, as shown in the following transcript.  I am using CVS
Bison, flex 2.5.31 (Debian GNU/Linux 3.1), and GCC 4.0.1.  Perhaps the
diagnostics I'm seeing might help you explain your problem, or it's
possible that I just haven't created the test case correctly.

$ make
flex  c++98.l
bison --verbose --yacc --defines --debug --report=all c++98.y
2 rules never reduced
c++98.y: warning: 1 useless nonterminal and 2 useless rules
c++98.y:36.27-45: warning: useless nonterminal: declaration_seq_opt
c++98.y:95.17-27: warning: useless rule: declaration_seq_opt: /* empty */
c++98.y:96.11-97.28: warning: useless rule: declaration_seq_opt: declaration_seq
conflicts: 10 shift/reduce, 2 reduce/reduce
gcc -g -I. -Wall -g -O0 -o y.tab.o -c y.tab.c
c++98.y:15: warning: type defaults to 'int' in declaration of 'yydebug'
c++98.y:15: warning: data definition has no type or storage class
y.tab.c: In function 'yyFail':
y.tab.c:664: warning: passing argument 1 of 'yyerror' discards qualifiers from 
pointer target type
y.tab.c: In function 'yyuserMerge':
y.tab.c:932: warning: implicit declaration of function 'merging'
y.tab.c:932: warning: assignment makes pointer from integer without a cast
y.tab.c: In function 'yyprocessOneStack':
y.tab.c:1803: warning: implicit declaration of function 'yylex'
In file included from c++98.y:188:
lex.yy.c: In function 'yylex':
lex.yy.c:766: warning: label 'find_rule' defined but not used
c++98.y: At top level:
c++98.y:230: error: conflicting types for 'merging'
y.tab.c:932: error: previous implicit declaration of 'merging' was here
c++98.y: In function 'main':
c++98.y:243: warning: implicit declaration of function 'ast2graphviz'
make: *** [y.tab.o] Error 1


Attachment: rcasapon.tgz
Description: Roger Casaponsa's test case (an attempt to reconstruct it)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]