[Bug libstdc++/42832] Revisit std::function for aliasing issues and efficiency

jason at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu May 20 15:40:00 GMT 2010



------- Comment #19 from jason at gcc dot gnu dot org  2010-05-20 15:40 -------
Aha.  That sounds good to me; I don't expect your testcase to work, because it
doesn't involve a char buffer.  The copy does need to use the object
representation, but I think the new-expression should be undefined (though the
standard needs fixing to make it so--this is core issue 1027).

So, can we revert the function::swap change for 4.6, then?


-- 


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



More information about the Gcc-bugs mailing list