decl.c (compute_array_index_type_loc): New, like the current compute_array_index_type...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 29 Nov 2018 21:34:38 +0000 (21:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 29 Nov 2018 21:34:38 +0000 (21:34 +0000)
commiteedb990a499c893797d85d99b892cd8452d4ada4
tree38b40efd84929d97a6bcee58611e6bae8bc948df
parent3ded6ffdfd75978712ed4d9b246fc47779b2d9d1
decl.c (compute_array_index_type_loc): New, like the current compute_array_index_type but takes a location_t too.

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

* decl.c (compute_array_index_type_loc): New, like the current
compute_array_index_type but takes a location_t too.
(compute_array_index_type): Forward to the latter.
(create_array_type_for_decl): Use compute_array_index_type_loc.

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

* g++.dg/cpp0x/constexpr-base6b.C: New.
* g++.dg/cpp0x/constexpr-47969.C: Test locations too.
* g++.dg/cpp0x/constexpr-48324.C: Likewise.
* g++.dg/cpp0x/constexpr-ex2.C: Likewise.
* g++.dg/cpp0x/scoped_enum2.C: Likewise.
* g++.dg/cpp1y/pr63996.C: Likewise.
* g++.dg/ext/constexpr-vla5.C: Likewise.
* g++.dg/ext/stmtexpr15.C: Likewise.
* g++.dg/ext/vla1.C: Likewise.
* g++.dg/other/fold1.C: Likewise.
* g++.dg/parse/array-size2.C: Likewise.
* g++.dg/parse/crash36.C: Likewise.
* g++.dg/ubsan/pr81530.C: Likewise.
* g++.dg/warn/Wvla-1.C: Likewise.
* g++.dg/warn/Wvla-2.C: Likewise.
* g++.old-deja/g++.brendan/array1.C: Likewise.
* g++.old-deja/g++.bugs/900402_02.C: Likewise.
* g++.old-deja/g++.law/init3.C: Likewise.
* g++.old-deja/g++.mike/p6149.C: Likewise.

From-SVN: r266645
22 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-47969.C
gcc/testsuite/g++.dg/cpp0x/constexpr-48324.C
gcc/testsuite/g++.dg/cpp0x/constexpr-base6b.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-ex2.C
gcc/testsuite/g++.dg/cpp0x/scoped_enum2.C
gcc/testsuite/g++.dg/cpp1y/pr63996.C
gcc/testsuite/g++.dg/ext/constexpr-vla5.C
gcc/testsuite/g++.dg/ext/stmtexpr15.C
gcc/testsuite/g++.dg/ext/vla1.C
gcc/testsuite/g++.dg/other/fold1.C
gcc/testsuite/g++.dg/parse/array-size2.C
gcc/testsuite/g++.dg/parse/crash36.C
gcc/testsuite/g++.dg/ubsan/pr81530.C
gcc/testsuite/g++.dg/warn/Wvla-1.C
gcc/testsuite/g++.dg/warn/Wvla-2.C
gcc/testsuite/g++.old-deja/g++.brendan/array1.C
gcc/testsuite/g++.old-deja/g++.bugs/900402_02.C
gcc/testsuite/g++.old-deja/g++.law/init3.C
gcc/testsuite/g++.old-deja/g++.mike/p6149.C