This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37800] decrementation problem - different result in similar situations
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2008 17:17:20 -0000
- Subject: [Bug c++/37800] decrementation problem - different result in similar situations
- References: <bug-37800-16817@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from paolo dot carlini at oracle dot com 2008-10-10 17:17 -------
By the way, those two cases, *both* lead to undefined behavior. I would
recommend you using -Wsequence-point more frequently.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37800