PR c++/89537 - missing location for error with non-static member fn.
authorMarek Polacek <polacek@redhat.com>
Fri, 1 Mar 2019 15:57:46 +0000 (15:57 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 1 Mar 2019 15:57:46 +0000 (15:57 +0000)
commit6fe7ce18d0173b16d80f28c29ef7540725e069ea
treeac2f628c744bbf22c002a129b05491cb0e9cc4c5
parentd724d2aff687414567caad50eda806a28480c771
PR c++/89537 - missing location for error with non-static member fn.

* call.c (resolve_args): Use EXPR_LOCATION.
* typeck.c (build_class_member_access_expr): Use input_location.

* g++.dg/diagnostic/member-fn-1.C: New test.

From-SVN: r269318
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/member-fn-1.C [new file with mode: 0644]