bug-bison
[Top][All Lists]
Advanced

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

Re: bison-2.1 compilation warnings


From: Akim Demaille
Subject: Re: bison-2.1 compilation warnings
Date: Thu, 11 May 2006 13:43:45 +0200


Le 11 mai 06 à 09:25, Paul Eggert a écrit :

You're correct for C89.  For C99 it is valid, since C99 macro calls
can have empty arguments.  (This is pretty weird, but that's what the
committee decided.)

Wow.  My love for committees is ever increasing.

I vaguely recall mentioning this to W.L. Estes (the flex maintainer, I
guess) a while ago, and he responded that he didn't care about
generating code for pre-C99 compilers.  A bit extreme, in my opinion.

Quite extreme in mine :)

The flex incompatibility remains unfixed in flex 2.5.33.


This problem has been worked around in Bison CVS, with the following
patch, so it should be fixed when Bison 2.2 comes out.

http://lists.gnu.org/archive/html/bison-patches/2005-10/msg00037.html

(look for the changes to scan-gram.l and scan-skel.l).

So, what is our attitude?  If we start worrying about such bugs,
we might as well document it in the FAQ.  Or we can have configure
issue a warning stating that

        W.L. Estes doesn't care about generating code for pre-C99,
        so examples/calc++ is likely to fail

?  Or be robust to that bug?





reply via email to

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