From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15056 invoked by alias); 19 Mar 2003 14:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 15019 invoked by uid 71); 19 Mar 2003 14:26:01 -0000 Date: Wed, 19 Mar 2003 14:26:00 -0000 Message-ID: <20030319142601.15018.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Falk Hueffner Subject: Re: c/10143: Post increment doesn work more than once per statement Reply-To: Falk Hueffner X-SW-Source: 2003-03/txt/msg01271.txt.bz2 List-Id: The following reply was made to PR c/10143; it has been noted by GNATS. From: Falk Hueffner To: "Nick Macdonald" Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org Subject: Re: c/10143: Post increment doesn work more than once per statement Date: 19 Mar 2003 15:24:26 +0100 "Nick Macdonald" writes: > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10143 > > If this is not a bug then can someone please point me at an > indication in the standard that indicates how this is correct > behaviour? 6.5: Between the previous and next sequence point an object shall have its stored value modified at most once by the evaluation of an expression. Furthermore, the prior value shall be read only to determine the value to be stored. > (Is there a FAQ entry somewhere that deals with this issue?) See the documentation of -Wsequence-point. (We should probably add this to the list of C non-bugs...) -- Falk