https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85110
--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Author: dmalcolm Date: Tue Apr 10 14:37:09 2018 New Revision: 259282 URL: https://gcc.gnu.org/viewcvs?rev=259282&root=gcc&view=rev Log: 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. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp1z/direct-enum-init1.C trunk/gcc/testsuite/g++.dg/diagnostic/aka2.C trunk/gcc/testsuite/g++.dg/diagnostic/param-type-mismatch-2.C