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]

Re: Is this a gcc bug?


On Jan 12, 2001, Axel Kittenberger <Anshil@gmx.net> wrote:

> bug.i:8: unpredictable behaviour due to undefined evaluation sequence of
> 'x'

It's the behavior that is undefined.  How about:

undefined behavior: expression may modify `x' multiple times

> I donnot know how gcc warning polices are, but wouldn't it be desirable
> having this warning enabled by default? since the original syntax is never
> correct c.

I'm inclined to agree.

-- 
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    *Please* write to mailing lists, not to me

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