This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is this a gcc bug?
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: Is this a gcc bug?
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Sat, 13 Jan 2001 11:20:44 +0000
- Cc: Axel Kittenberger <Anshil at gmx dot net>, gcc at gcc dot gnu dot org
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
> 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
But it may not modify `x' multiple times, yet it can still be undefined.
Consider (as I posted before)
y = x++ + x;
Since Dewar didn't like my has multiple interpretations suggestion how
about
expression containing 'x' has undefined value.
R.