This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]