This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Charconst valuation and short-circuiting
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Bonzini <bonzini at gnu dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: 06 May 2002 08:29:26 -0300
- Subject: Re: Charconst valuation and short-circuiting
- Organization: GCC Team, Red Hat
- References: <E174gKc-0001Lv-00@fencepost.gnu.org>
On May 6, 2002, Bonzini <bonzini@gnu.org> wrote:
>> Should GCC not be attempting to value the character constant in
>> the following code (and therefore not give a hard error about
>> a too-long charconst?)
>>
>> if (0 && 'abcdefghijk')
> I don't think so.
Agreed. IMO, it's not too different from:
if (0 && undefined_variable)
which is surely expected to trigger an error.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer