decl.c (create_array_type_for_decl): Add location_t parameter and use it.
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 29 Oct 2018 22:57:39 +0000 (22:57 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 29 Oct 2018 22:57:39 +0000 (22:57 +0000)
commitebdb73c0b0950509eab6a5fa7f0f5b360c6e5cca
treebf48e3d4f8d3136e880e1cf660a7d68dbe911aac
parent64ac3c33ba88dd3b248ff7c07709a2d28e9b1dfe
decl.c (create_array_type_for_decl): Add location_t parameter and use it.

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

* decl.c (create_array_type_for_decl): Add location_t parameter
and use it.
(grokdeclarator): Adjust call.

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

* g++.dg/cpp0x/auto24.C: Test location too.
* g++.dg/cpp0x/auto3.C: Likewise.
* g++.dg/cpp0x/auto42.C: Likewise.
* g++.dg/cpp0x/initlist57.C: Likewise.
* g++.dg/cpp0x/initlist75.C: Likewise.
* g++.dg/cpp0x/initlist80.C: Likewise.
* g++.dg/cpp0x/lambda/lambda-ice13.C: Likewise.
* g++.old-deja/g++.brendan/array-refs.C: Likewise.
* g++.old-deja/g++.bugs/900322_01.C: Likewise.
* g++.old-deja/g++.bugs/900519_07.C: Likewise.
* g++.old-deja/g++.other/typeck1.C: Likewise.

From-SVN: r265608
14 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto24.C
gcc/testsuite/g++.dg/cpp0x/auto3.C
gcc/testsuite/g++.dg/cpp0x/auto42.C
gcc/testsuite/g++.dg/cpp0x/initlist57.C
gcc/testsuite/g++.dg/cpp0x/initlist75.C
gcc/testsuite/g++.dg/cpp0x/initlist80.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice13.C
gcc/testsuite/g++.old-deja/g++.brendan/array-refs.C
gcc/testsuite/g++.old-deja/g++.bugs/900322_01.C
gcc/testsuite/g++.old-deja/g++.bugs/900519_07.C
gcc/testsuite/g++.old-deja/g++.other/typeck1.C