]> gcc.gnu.org Git - gcc.git/commit
Show pertinent parameter (PR c++/85110)
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 10 Apr 2018 14:37:09 +0000 (14:37 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 10 Apr 2018 14:37:09 +0000 (14:37 +0000)
commit672c767bf6dfbebc22062403e9e8cfc0f6e290ac
treebfe80d22f2084a40849834bf9d7f8b4f2c99b8ca
parent5f302518627efd04b04a0da3269541fdfa2d7388
Show pertinent parameter (PR c++/85110)

gcc/cp/ChangeLog:
PR c++/85110
* call.c (get_fndecl_argument_location): Make non-static.
* cp-tree.h (get_fndecl_argument_location): New decl.
* typeck.c (convert_for_assignment): When complaining due to
conversions for an argument, show the location of the parameter
within the decl.

gcc/testsuite/ChangeLog:
PR c++/85110
* g++.dg/cpp1z/direct-enum-init1.C: Update for the cases
where we now show the pertinent parameter.
* g++.dg/diagnostic/aka2.C: Likewise.
* g++.dg/diagnostic/param-type-mismatch-2.C: Likewise.

From-SVN: r259282
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C
gcc/testsuite/g++.dg/diagnostic/aka2.C
gcc/testsuite/g++.dg/diagnostic/param-type-mismatch-2.C
This page took 0.063227 seconds and 5 git commands to generate.