https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90767
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Nov 20 09:55:56 2019 New Revision: 278492 URL: https://gcc.gnu.org/viewcvs?rev=278492&root=gcc&view=rev Log: PR c++/90767 * call.c (complain_about_no_candidates_for_method_call): If conv->from is not a type, pass to complain_about_bad_argument lvalue_type of conv->from. * g++.dg/diagnostic/pr90767-1.C: New test. * g++.dg/diagnostic/pr90767-2.C: New test. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/diagnostic/pr90767-1.C branches/gcc-9-branch/gcc/testsuite/g++.dg/diagnostic/pr90767-2.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/call.c branches/gcc-9-branch/gcc/testsuite/ChangeLog