Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #302

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

From Alessandro Basili <alessandro.basili@cern.ch>
Newsgroups comp.compilers
Subject bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type
Date 2011-10-31 14:15 +0100
Organization Compilers Central
Message-ID <11-10-020@comp.compilers> (permalink)

Show all headers | View raw


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]

Back to comp.compilers | Previous | NextNext in thread | Find similar


Thread

bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type Alessandro Basili <alessandro.basili@cern.ch> - 2011-10-31 14:15 +0100
  Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type Hans Aberg <haberg-news@telia.com> - 2011-10-31 20:49 +0100
    Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type Alessandro Basili <alessandro.basili@cern.ch> - 2011-11-02 09:45 +0100
  Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type George Neuner <gneuner2@comcast.net> - 2011-11-02 12:33 -0400
    Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type George Neuner <gneuner2@comcast.net> - 2011-11-04 12:56 -0400
      Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type Alessandro Basili <alessandro.basili@cern.ch> - 2011-11-06 19:24 +0100
        Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2011-11-07 05:08 +0000
        Re: bison c-parse.y:1115.19-20: $$ for the midrule at $4 of `structsp' has no declared type George Neuner <gneuner2@comcast.net> - 2011-11-07 03:18 -0500

csiph-web