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: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- Cc: Nick Macdonald <macdonn at nortelnetworks dot com>, <gcc-gnats at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>
- Date: Wed, 19 Mar 2003 19:04:11 +0000 (GMT)
- Subject: Re: c/10143: Post increment doesn work more than once per statement
On 19 Mar 2003, Falk Hueffner wrote:
> > (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...)
The bug reporting instructions <http://gcc.gnu.org/bugs.html> say:
Before reporting that GCC compiles your code incorrectly, please
compile it with gcc -Wall and see whether this shows anything wrong
with your code that could be the cause instead of a bug in GCC.
To the submitter: did you see this part of the instructions and try
compiling your code with -Wall (which includes -Wsequence-point, which
would have shown up the problem with the code)? If not, how could we
improve the documentation of how to submit bugs so that you would have
seen and followed these instructions? If you did use -Wall, how could we
clarify the warning message?
--
Joseph S. Myers
jsm28 at cam dot ac dot uk