Commit 4cd123ed by Jason Merrill

re PR c++/57064 ([clarification requested] Which overload with ref-qualifier should be called?)

	PR c++/57064
	* g++.dg/cpp0x/ref-qual9.C: New.

From-SVN: r198311
parent 17365662
// PR c++/57064
// { dg-require-effective-target c++11 }
template <class T> T&& move(T& t);
struct A {
void p() &;
int p() &&;
};
void g(A &&a)
{
int i = move(a).p();
}
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