------- Comment #6 from paolo dot carlini at oracle dot com 2009-04-27 09:18 ------- I'm sorry, about the second case, don't you have to std::move(a), in order to accomplish what you want? At, least, this is what we consistently do in the experimental bits of the library.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923