re PR c++/66130 ("invalid use of non-static member function" message could be clearer)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 3 Jun 2015 19:23:20 +0000 (19:23 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 3 Jun 2015 19:23:20 +0000 (19:23 +0000)
commitd3ea4c064f6e6370eb791985fef4acdd5fb1b833
tree8c52823d6a36b1409914c63e7e541f67d8c6a56d
parent4753e009664aa5d4cdf0ce86a03224f5bc1f9d7b
re PR c++/66130 ("invalid use of non-static member function" message could be clearer)

2015-06-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/66130
* typeck.c (invalid_nonstatic_memfn_p): Add location_t parameter and
use it in the diagnostic.
(decay_conversion): Adjust call.
* semantics.c (finish_decltype_type): Likewise.
* call.c (resolve_args, build_new_op_1,
perform_implicit_conversion_flags): Adjust calls.
* cvt.c (ocp_convert, convert_to_void): Likewise.
* cp-tree.h (invalid_nonstatic_memfn_p): Update declaration.

2015-06-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/66130
* g++.dg/other/pr66130.C: New.
* g++.dg/cpp0x/pr66130.C: Likewise.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r224099
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr66130.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/pr66130.C [new file with mode: 0644]