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


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.

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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