re PR c++/71835 (ICE on invalid C++ code with ambiguous overloaded operators: tree...
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Jul 2016 18:44:51 +0000 (20:44 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 18 Jul 2016 18:44:51 +0000 (20:44 +0200)
commit99516432c26d13ba2808daf860253b4f945336d9
treeb7206228efa3fec183b48d41c563424e0269dcde
parent87713c6a507659921278d32b66f2e344b7c4d124
re PR c++/71835 (ICE on invalid C++ code with ambiguous overloaded operators: tree check: expected tree that contains ‘decl minimal’ structure, have ‘pointer_type’ in convert_like_real, at cp/call.c:6549)

PR c++/71835
* call.c (build_op_call_1): Use convert_like_with_context only
if cand->fn is a decl.

* g++.dg/conversion/ambig3.C: New test.

From-SVN: r238443
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/ambig3.C [new file with mode: 0644]