pt.c (check_default_tmpl_args): Uses the parameter source location in the diagnostic.
authorJason Merrill <jason@redhat.com>
Thu, 25 Dec 2014 07:28:01 +0000 (02:28 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 25 Dec 2014 07:28:01 +0000 (02:28 -0500)
commitfdc2ae49fd456418639ebfea7d34ad7beda3c093
treedca5cf6b66e075778a790f779f7d532c0c4b6b89
parent17e87c1ca5476117c64c69a9777226af70dd4394
pt.c (check_default_tmpl_args): Uses the parameter source location in the diagnostic.

* pt.c (check_default_tmpl_args): Uses the parameter source
location in the diagnostic.
(convert_template_argument): Just return if parm is error_mark_node.

From-SVN: r219067
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/pr31432.C
gcc/testsuite/g++.dg/cpp0x/pr31442.C
gcc/testsuite/g++.dg/cpp0x/pr32115.C
gcc/testsuite/g++.dg/cpp0x/variadic40.C
gcc/testsuite/g++.dg/template/crash55.C
gcc/testsuite/g++.dg/template/crash57.C