From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21987 invoked by alias); 22 Mar 2006 13:08:50 -0000 Received: (qmail 21973 invoked by uid 48); 22 Mar 2006 13:08:46 -0000 Date: Wed, 22 Mar 2006 13:08:00 -0000 Message-ID: <20060322130846.21972.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/18050] -Wsequence-point reports false positives In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "schwab at suse dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-03/txt/msg02204.txt.bz2 List-Id: ------- Comment #9 from schwab at suse dot de 2006-03-22 13:08 ------- (In reply to comment #8) > i = (i += 1); > > where for i += 1 the next sequence point is the i = ... assigment? The next sequence point is the semicolon. > Of course for the particular testcase the ordering of the two stores > does not matter. Would int i=0; i = ++i + 1; be able to result in > i == 1? Yes, the side effects of = and ++ can be performed in either order. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18050