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 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> 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 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 $$ 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]