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++/32067] template<class T> XOR-Swap(T &a, T &b); error with -O0 option



------- Comment #1 from pluto at agmk dot net  2007-05-24 12:31 -------
(In reply to comment #0)

> Any comment?

this is an example of undefined behaviour.
http://blogs.msdn.com/rick_schaut/archive/2004/03/06/85357.aspx


-- 


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


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