This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: parse error using gcc 2.95
- To: Luc dot Maisonobe at cnes dot fr
- Subject: Re: parse error using gcc 2.95
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 5 Aug 1999 11:28:07 +0200
- CC: gcc-bugs at gcc dot gnu dot org, Geraldine dot Filaire at cnes dot fr, Martine dot Julien at cisi dot cnes dot fr, jason at cygnus dot com
- References: <14248.24187.955542.753059@lurien.cst.cnes.fr>
> C c (B (A<double> (-p, -p, q), 0.5));
Thanks for your bug report. This is a known bug; the work around is to
add an additional pair of parentheses:
C c ((B (A<double> (-p, -p, q), 0.5)));
Jason, I believe this was caused by this change
1999-04-15 Jason Merrill <jason@yorick.cygnus.com>
* parse.y (after_type_declarator_intern): New nonterminal.
In the specific case, the parser runs into state 480 (of gcc 2.95),
which is
state 480
direct_after_type_declarator -> '(' after_type_declarator_intern . ')' (rule 599)
')' shift, and go to state 755
Now we see the comma, and fail. Is there anything that could be done
about it? It looks like this get a frequently-reported bug for gcc
2.95.
Regards,
Martin