bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type

Alessandro Basili <alessandro.basili@cern.ch>
Mon, 31 Oct 2011 14:15:31 +0100

          From comp.compilers

Related articles
bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has alessandro.basili@cern.ch (Alessandro Basili) (2011-10-31)
Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' haberg-news@telia.com (Hans Aberg) (2011-10-31)
Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' alessandro.basili@cern.ch (Alessandro Basili) (2011-11-02)
Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' gneuner2@comcast.net (George Neuner) (2011-11-02)
Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' gneuner2@comcast.net (George Neuner) (2011-11-04)
Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' alessandro.basili@cern.ch (Alessandro Basili) (2011-11-06)
Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-11-07)
[1 later articles]
| List of all articles for this month |
From: Alessandro Basili <alessandro.basili@cern.ch>
Newsgroups: comp.compilers
Date: Mon, 31 Oct 2011 14:15:31 +0100
Organization: Compilers Central
Keywords: bison, question, comment
Posted-Date: 31 Oct 2011 10:50:43 EDT

This message has been previously posted on gnu.gcc.help with no answer
in three days.


Hi,


I'm not sure if this is the right place to talk about this issue, I'm
open to re-post this article on a more appropriate group upon suggestions.


I'm trying to get g21k (rev. 3.3.4) (Analog Devices's gcc port for SHARC
architecture) to compile with my gcc (rev. 4.4.1).
I'm having several problems with the package
(http://code.google.com/p/g21k/) but trying to make it happen.


Unfortunately now I'm stuck with a problem related to bison:


> cd .; bison -v -d c-parse.y -o c-parse.c
> c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type
> c-parse.y:1128.19-20: $$ for the midrule at $4 of `structsp' has no declared type
> c-parse.y:1138.19-20: $$ for the midrule at $4 of `structsp' has no declared type
> c-parse.y:1144.19-20: $$ for the midrule at $3 of `structsp' has no declared type


To be honest is the first time I learned about bison and after some
searching I found that $$ is not allowed anymore for a midrule, that is
why I tried to change it into $<ttype>$ in the (what I believed)
appropriate places, but then I got the following message:


> cd .; bison -v -d c-parse.y -o c-parse.c
> c-parse.y: conflicts: 10 shift/reduce
> c-parse.y: expected 8 shift/reduce conflicts


I believe I'm in the dark here.
[How about showing us a snippet of the code that you changed? -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.