This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/40600] pair& operator=(pair&& __p) doesn't work without inlining



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]