bison-patches
[Top][All Lists]
Advanced

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

Re: Warn about character literals not of length one.


From: Akim Demaille
Subject: Re: Warn about character literals not of length one.
Date: Fri, 24 Jul 2009 15:32:38 +0200


Le 23 juil. 09 à 20:22, Joel E. Denny a écrit :

I'm surprised to see a comment in scan-gram.l that describes this behavior
almost as if it's desired:

 /* Characters.  We don't check there is only one.  */

A FIXME might be missing :)

Is there some good reason why we shouldn't check?

I don't see any.  Unless POSIX states this behavior, of course.

I've thought about making it an error instead of a warning because it
seems like a severe mistake to miss. However, I worry that could cause
trouble for distro maintainers trying to build existing projects.

But we should really make this an error in the future, and I suggest that NEWS state this.





reply via email to

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