This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question for ISO C standards gurus
- From: prj at po dot cwru dot edu (Paul Jarc)
- To: law at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 25 Mar 2004 13:12:01 -0500
- Subject: Re: Question for ISO C standards gurus
- Organization: What did you have in mind? A short, blunt, human pyramid?
- References: <200403251803.i2PI384m020124@speedy.slc.redhat.com>
law@redhat.com wrote:
> if (!(names = ecgetlist(state, *state->pc++, 2, &htok))) {
...
> Of particular interest is whether or not the increment occurs before
> the call or after the call.
n869, 6.5.2.2p10:
# The order of evaluation of the function designator, the actual
# arguments, and subexpressions within the actual arguments is
# unspecified, but there is a sequence point before the actual call.
So the side effect would take place before the sequence point, and
thus before the call. n869 was the latest public draft of C99; I
don't have a copy of the final standard. It's possible that this
might have changed.
paul