[Bug c++/71835] [6/7 Regression] 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
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 18 18:45:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71835
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jul 18 18:44:51 2016
New Revision: 238443
URL: https://gcc.gnu.org/viewcvs?rev=238443&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/conversion/ambig3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list