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]

[Bug c++/14417] output streams and post-increment operator have incorrect output.


------- 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


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