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++/49679] Increment/decrement operator (++/--) not working as expected


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49679

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-08 18:37:41 UTC ---
(In reply to comment #3)
> a and b must be the same.

No, it's undefined behaviour. Anything can happen.

http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html


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