re PR c++/82593 (Internal compiler error: in process_init_constructor_array, at cp...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 19 Dec 2017 22:14:59 +0000 (22:14 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 19 Dec 2017 22:14:59 +0000 (22:14 +0000)
commit1c97d579f228a3ccfb2e08377eb387b904194911
tree1795a7bd35f6078e54a3ebd2b9182ad6e5c71498
parent5837edca5cf5eb7cc45a2a61f69543264b50bbc8
re PR c++/82593 (Internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1294)

/cp
2017-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/82593
* decl.c (check_array_designated_initializer): Not static.
* cp-tree.h (check_array_designated_initializer): Declare.
* typeck2.c (process_init_constructor_array): Call the latter.
* parser.c (cp_parser_initializer_list): Check the return value
of require_potential_rvalue_constant_expression.

/testsuite
2017-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/82593
* g++.dg/cpp0x/desig2.C: New.
* g++.dg/cpp0x/desig3.C: Likewise.
* g++.dg/cpp0x/desig4.C: Likewise.

From-SVN: r255845
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parser.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/cpp0x/desig2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/desig3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/desig4.C [new file with mode: 0644]