------- Comment #3 from rguenther at suse dot de 2009-06-30 11:49 ------- Subject: Re: pair& operator=(pair&& __p) doesn't work without inlining
On Tue, 30 Jun 2009, paolo dot carlini at oracle dot com wrote: > ------- Comment #2 from paolo dot carlini at oracle dot com 2009-06-30 11:48 > ------- > Actually, only the testcase is wrong, has not been updated to the > implementation, which now correctly returns a pair<int, int>. Shouldn't all constructors / assigment operators be removed that do rvalue to lvalue conversion this way so the testcase would not compile? Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40600