This is the mail archive of the gcc@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: Charconst valuation and short-circuiting


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


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