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

Joseph S. Myers jsm@polyomino.org.uk
Fri Jan 2 19:23:00 GMT 2004


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



More information about the Gcc-patches mailing list