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