This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32067] template<class T> XOR-Swap(T &a, T &b); error with -O0 option
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2007 11:31:39 -0000
- Subject: [Bug c++/32067] template<class T> XOR-Swap(T &a, T &b); error with -O0 option
- References: <bug-32067-14597@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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