This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/10143: Post increment doesn work more than once per statement
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Nick Macdonald <macdonn at nortelnetworks dot com>
- Cc: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>, <gcc-gnats at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>
- Date: Wed, 19 Mar 2003 20:09:49 +0000 (GMT)
- Subject: Re: c/10143: Post increment doesn work more than once per statement
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 at cam dot ac dot uk