PR c++/84906 - silent wrong code with ambiguous conversion.
authorJason Merrill <jason@redhat.com>
Fri, 16 Mar 2018 18:55:54 +0000 (14:55 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 16 Mar 2018 18:55:54 +0000 (14:55 -0400)
commit929a01229393f32b47d4915e48437c091a7baeec
tree2a0b2bb3da9c155b075f6a120fa6c857e25a7754
parent7293e3f58edb7535d826c85160b9fa6d4132ffea
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.

From-SVN: r258603
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp1y/auto-fn50.C [new file with mode: 0644]