bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/4] bench: compatibility for Bison <= 2.7


From: Akim Demaille
Subject: Re: [PATCH 2/4] bench: compatibility for Bison <= 2.7
Date: Mon, 21 Jan 2013 13:41:35 +0100

Le 21 janv. 2013 à 12:57, Théophile Ranquet <address@hidden> a écrit :

> 2013/1/21 Akim Demaille <address@hidden>:
>> Please, use both yylvalp _and_ yyllocp.
> 
> This is the case, except at the precise location you pointed out. The
> bug only expanded identifiers in the definition, not the declaration:
> this is why I missed it.  Maybe it is worth reporting this somewhere?

I does not need to be extensive, but a few words would be useful,
and, why not, the SHA1 of the commit that fixes this issues.

>> The commit message should
>> be clearer about why this is helpful (be more explicit about the
>> failure you avoid this way).
> 
> Really? The bug is already documented in NEWS, and the commit message
> gave a clear pointer to the relevant changesets... anyways, maybe the
> following message is better:
> 
> commit 1df017f5a51a1a90f4fe6e2c0fad07f267163dc1
> Author: Theophile Ranquet <address@hidden>
> Date:   Tue Jan 15 17:54:44 2013 +0100
> 
>    bench: compatibility for Bison <= 2.7
> 
>    There used to be a bug in some skeletons, which caused the expansion of
>    'yylval' and 'yylloc', generating these errors:
> 
>    input.cc:547:16: error: expected ',' or '...' before '(' token
>     #define yylval (yystackp->yyval)
>                    ^
>    input.yy:29:39: note: in expansion of macro 'yylval'
>     int yylex (yy::parser::semantic_type *yylval)
>                                           ^
> 
>    This bug is fixed by 'skel: better aliasing of identifiers', but a
> workaround
>    is useful when benchmarking against older versions of Bison, which are 
> still
>    affected by the bug.

Fine!

>    * etc/bench.pl.in: Rename yylval to yylvalp and yylloc to yyllocp in base
>    grammar 'list'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]