pt.c (check_explicit_specialization): Use cp_expr_loc_or_input_loc.
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 23 Sep 2019 19:29:55 +0000 (19:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 23 Sep 2019 19:29:55 +0000 (19:29 +0000)
commit0788210f804a2ba451bc9cbda26c256ad9f7c5f3
tree1332056024df43e40d4606a485f2d6f9d3111fec
parent7926a220d853e7c28576e69f90eab1aff684c5ad
pt.c (check_explicit_specialization): Use cp_expr_loc_or_input_loc.

/cp
2019-09-23  Paolo Carlini  <paolo.carlini@oracle.com>

* pt.c (check_explicit_specialization): Use cp_expr_loc_or_input_loc.
(process_partial_specialization): Likewise.
(convert_nontype_argument_function): Likewise.
(invalid_tparm_referent_p): Likewise.
(convert_template_argument): Likewise.
(check_valid_ptrmem_cst_expr): Tidy.

/testsuite
2019-09-23  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/pr68724.C: Check location(s) too.
* g++.dg/cpp0x/variadic38.C: Likewise.
* g++.dg/cpp1z/nontype2.C: Likewise.
* g++.dg/parse/explicit1.C: Likewise.
* g++.dg/template/crash11.C: Likewise.
* g++.dg/template/non-dependent8.C: Likewise.
* g++.dg/template/nontype-array1.C: Likewise.
* g++.dg/template/nontype3.C: Likewise.
* g++.dg/template/nontype8.C: Likewise.
* g++.dg/template/partial5.C: Likewise.
* g++.dg/template/spec33.C: Likewise.
* g++.old-deja/g++.pt/memtemp64.C: Likewise.
* g++.old-deja/g++.pt/spec20.C: Likewise.
* g++.old-deja/g++.pt/spec21.C: Likewise.
* g++.old-deja/g++.robertl/eb103.C: Likewise.

From-SVN: r276064
18 files changed:
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr68724.C
gcc/testsuite/g++.dg/cpp0x/variadic38.C
gcc/testsuite/g++.dg/cpp1z/nontype2.C
gcc/testsuite/g++.dg/parse/explicit1.C
gcc/testsuite/g++.dg/template/crash11.C
gcc/testsuite/g++.dg/template/non-dependent8.C
gcc/testsuite/g++.dg/template/nontype-array1.C
gcc/testsuite/g++.dg/template/nontype3.C
gcc/testsuite/g++.dg/template/nontype8.C
gcc/testsuite/g++.dg/template/partial5.C
gcc/testsuite/g++.dg/template/spec33.C
gcc/testsuite/g++.old-deja/g++.pt/memtemp64.C
gcc/testsuite/g++.old-deja/g++.pt/spec20.C
gcc/testsuite/g++.old-deja/g++.pt/spec21.C
gcc/testsuite/g++.old-deja/g++.robertl/eb103.C