Commit a9ad62b6 by Marek Polacek Committed by Marek Polacek

re PR c++/84306 (Wrong overload selected with -std=c++17, explicit and {})

	PR c++/84306
	* g++.dg/overload/conv-op3.C: New test.

From-SVN: r262345
parent 3f27391f
......@@ -3,6 +3,9 @@
PR middle-end/86202
* gcc.dg/Wint-conversion-2.c: New test.
PR c++/84306
* g++.dg/overload/conv-op3.C: New test.
2018-07-03 Richard Biener <rguenther@suse.de>
PR ipa/86389
......
// c++/84306
// { dg-do link { target c++11 } }
struct foo {
foo() = default;
foo(foo const&);
template<typename T>
explicit foo(T&&) { }
};
int
main()
{
foo f1;
foo f2{f1};
}
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