bug-gnulib
[Top][All Lists]
Advanced

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

Re: stdbool.m4 bug


From: Paul Eggert
Subject: Re: stdbool.m4 bug
Date: Mon, 17 Oct 2005 09:49:20 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Hi Paul,
>
> This snippet of code in stdbool.m4, added on 2004-06-01, looks fishy to me:
>
>   enum { j = false, k = true, l = false * true, m = true * 256 };
>   ...
>   return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
>           + !m + !n + !o);
>
> You are expecting that j and l evaluate to true?

No, I'm just making sure that every declared value is used, and can be
an operand of '!'.  The code isn't run; it's only compiled.  Maybe
there should be a comment....




reply via email to

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