decl.c (check_array_designated_initializer): Use cp_expr_loc_or_input_loc in one...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 6 Aug 2019 09:56:44 +0000 (09:56 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 6 Aug 2019 09:56:44 +0000 (09:56 +0000)
commit1a013865bed6ae419945945e418d078bf30f8b89
treed49d84810749b6037828ab51eca6736625de6526
parent3a961aea3b7de700d68d460a496b1f4a65c5009b
decl.c (check_array_designated_initializer): Use cp_expr_loc_or_input_loc in one place.

/cp
2019-08-06  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (check_array_designated_initializer): Use
cp_expr_loc_or_input_loc in one place.

/testsuite
2019-08-06  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/desig1.C: Check location too.

From-SVN: r274141
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/desig1.C