This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65869] Incorrect overload resolution in function return statement
- From: "botond at mozilla dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 25 Apr 2015 02:57:12 +0000
- Subject: [Bug c++/65869] Incorrect overload resolution in function return statement
- Auto-submitted: auto-generated
- References: <bug-65869-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65869
--- Comment #4 from Botond Ballo <botond at mozilla dot com> ---
> - The second overload resolution fails, because the only
> candidate (again, the explicit constructors are not
> candidates) has an rvalue reference parameter, which
> cannot bind to the lvalue that we're not treating the
> object as being.
This is also a typo, should say "cannot bind to the lvalue that we're treating
the object as being".