This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Minor work-around for native HPPA compiler bug


"Joseph S. Myers" <jsm@polyomino.org.uk> writes:

> On Fri, 2 Jan 2004, Zack Weinberg wrote:
>
>> > Testing whether (bool)2 == 1 is a compile-time test, just as computing 
>> > type sizes is.
>> 
>> Doesn't the cast make it an invalid array size expression?
>
> bool is an integer type, so no.

Oh, ok.  (I'm kinda groggy this morning.)  This still doesn't help
with the issue of not being able to rely on properties of _Bool
though.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]