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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.lightlink.com!news.iecc.com!lnews.iecc.com!nerds-end
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 Mon, 31 Oct 2011 14:15:31 +0100
Organization Compilers Central
Lines 32
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <11-10-020@comp.compilers> (permalink)
NNTP-Posting-Host lnews.iecc.com
X-Trace gal.iecc.com 1320072643 352 64.57.183.34 (31 Oct 2011 14:50:43 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Mon, 31 Oct 2011 14:50:43 +0000 (UTC)
Keywords bison, question, comment
Posted-Date 31 Oct 2011 10:50:43 EDT
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref x330-a1.tempe.blueboxinc.net comp.compilers:302

Show key headers only | 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