From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27506 invoked by alias); 19 Mar 2003 20:16:03 -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 27371 invoked by uid 71); 19 Mar 2003 20:16:01 -0000 Date: Wed, 19 Mar 2003 20:16:00 -0000 Message-ID: <20030319201601.27364.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Joseph S. Myers" Subject: Re: c/10143: Post increment doesn work more than once per statement Reply-To: "Joseph S. Myers" X-SW-Source: 2003-03/txt/msg01297.txt.bz2 List-Id: The following reply was made to PR c/10143; it has been noted by GNATS. From: "Joseph S. Myers" To: Nick Macdonald Cc: Falk Hueffner , , Subject: Re: c/10143: Post increment doesn work more than once per statement Date: Wed, 19 Mar 2003 20:09:49 +0000 (GMT) On Wed, 19 Mar 2003, Nick Macdonald wrote: > {macdonn}195: gcc -Wsequence-point WeirdForLoop.c > > There is no sequence point warning when compiling either program... > using either 2.95.2 or 3.2.2 That then is a bug in -Wsequence-point we need to fix (and this PR should be reopened and retitled to reflect that): this is one of the simple cases that -Wsequence-point is meant to detect, not one of the complicated cases that are known not to be handled. -- Joseph S. Myers jsm28@cam.ac.uk