This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Minor work-around for native HPPA compiler bug
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Roger Sayle <roger at eyesopen dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 2 Jan 2004 19:23:33 +0000 (UTC)
- Subject: Re: [PATCH] Minor work-around for native HPPA compiler bug
- References: <Pine.LNX.4.44.0312302112110.9360-100000@www.eyesopen.com><87brpofwnu.fsf@egil.codesourcery.com> <Pine.LNX.4.58.0312312236080.27752@digraph.polyomino.org.uk><873cb0ftpt.fsf@egil.codesourcery.com> <Pine.LNX.4.58.0312312341500.21230@digraph.polyomino.org.uk><87wu8ap3xl.fsf@egil.codesourcery.com> <Pine.LNX.4.58.0401021908460.3364@digraph.polyomino.org.uk><87smiyp39x.fsf@egil.codesourcery.com>
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