PR c++/84906 - silent wrong code with ambiguous conversion.
commit612d07acbe3cb53944fc8ee646aeb277ac8bb42a
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Mar 2018 18:55:54 +0000 (16 18:55 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Mar 2018 18:55:54 +0000 (16 18:55 +0000)
tree2a0b2bb3da9c155b075f6a120fa6c857e25a7754
parenteaefe34ffd42124f10050153b81056baf3e76f68
PR c++/84906 - silent wrong code with ambiguous conversion.

* call.c (build_user_type_conversion_1): Set need_temporary_p on
ambiguous conversion.
(convert_like_real): Check it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258603 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp1y/auto-fn50.C [new file with mode: 0644]