[Bug c++/14417] output streams and post-increment operator have incorrect output.
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 3 23:23:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-03-03 23:23 -------
The standard says that the behavior of your program is undefined in this
case. Newer compilers are better at optimizing code, so they trip users
writing undefined code more often. It's not the compiler's fault if it
reorders code that the standard allows it to reorder.
W.
PS: To understand what's going on, read the entry on -Wsequence-point
in the manual.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14417
More information about the Gcc-bugs
mailing list