re PR c++/90767 (jumbled error message with this and const)
authorJakub Jelinek <jakub@redhat.com>
Wed, 20 Nov 2019 08:33:56 +0000 (09:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Nov 2019 08:33:56 +0000 (09:33 +0100)
commitee686729283500c330b8b920f4f8e4dcc566adde
tree749ac663fb4f1550f1ed8d1ac5b9e3376f97a7cb
parentd742b0c1a02aab7fa61b6d89eecee81b298f06c6
re PR c++/90767 (jumbled error message with this and const)

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.

From-SVN: r278484
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/pr90767-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/diagnostic/pr90767-2.C [new file with mode: 0644]