This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/40600] pair& operator=(pair&& __p) doesn't work without inlining
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2009 11:49:31 -0000
- Subject: [Bug libstdc++/40600] pair& operator=(pair&& __p) doesn't work without inlining
- References: <bug-40600-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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