Commit c7744b8e by Jason Merrill Committed by Jason Merrill

re PR c++/59296 ([c++11] ref-qualified member function is ambiguous)

	PR c++/59296
	* call.c (add_function_candidate): Also set LOOKUP_NO_TEMP_BIND.

From-SVN: r211821
parent 61fc05c7
2014-06-19 Jason Merrill <jason@redhat.com>
PR c++/59296
* call.c (add_function_candidate): Also set LOOKUP_NO_TEMP_BIND.
2014-06-18 Jason Merrill <jason@redhat.com>
PR c++/59296
......
......@@ -2026,7 +2026,8 @@ add_function_candidate (struct z_candidate **candidates,
bool rv = FUNCTION_RVALUE_QUALIFIED (TREE_TYPE (fn));
parmtype = cp_build_reference_type (parmtype, rv);
/* Don't bind an rvalue to a const lvalue ref-qualifier. */
lflags |= LOOKUP_NO_RVAL_BIND;
if (!rv)
lflags |= LOOKUP_NO_RVAL_BIND|LOOKUP_NO_TEMP_BIND;
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment