------- Comment #20 from rguenther at suse dot de 2010-05-20 15:44 ------- Subject: Re: Revisit std::function for aliasing issues and efficiency
On Thu, 20 May 2010, jason at gcc dot gnu dot org wrote: > ------- 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? Well. It is probably safe (though I'd like to know how 44164 is exactly broken - backporting that change doesn't fix that testcase). Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42832