constexpr.c (ensure_literal_type_for_constexpr_object): Use DECL_SOURCE_LOCATION...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 15 Nov 2018 18:03:54 +0000 (18:03 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 15 Nov 2018 18:03:54 +0000 (18:03 +0000)
commitf2935576e990ec5e383138622515d393f7227500
tree6985e4eb0695abf80facd9d4a827adbe790cf449
parent1ec7f4929a286da7aa03d413a0fe99c9c36be915
constexpr.c (ensure_literal_type_for_constexpr_object): Use DECL_SOURCE_LOCATION in error_at calls.

/cp
2018-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

* constexpr.c (ensure_literal_type_for_constexpr_object): Use
DECL_SOURCE_LOCATION in error_at calls.

/testsuite
2018-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/constexpr-diag3.C: Check locations too.
* g++.dg/cpp0x/constexpr-ice19.C: Likewise.
* g++.dg/cpp0x/constexpr-nonlit2.C: Likewise.
* g++.dg/cpp1z/constexpr-lambda15.C: Likewise.
* g++.dg/ext/constexpr-vla5.C: Likewise.
* g++.dg/gomp/pr85134.C: Likewise.

From-SVN: r266192
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-diag3.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ice19.C
gcc/testsuite/g++.dg/cpp0x/constexpr-nonlit2.C
gcc/testsuite/g++.dg/cpp1z/constexpr-lambda15.C
gcc/testsuite/g++.dg/ext/constexpr-vla5.C
gcc/testsuite/g++.dg/gomp/pr85134.C