re PR c++/87324 (g++ ICE with overriding initializers: Segmentation fault)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 19 Sep 2018 19:35:19 +0000 (19:35 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 19 Sep 2018 19:35:19 +0000 (19:35 +0000)
commitff5c3c9d38ec89c2fdab4b947676e45f4ffdf61e
treec5d92913d65732a061312555b82e098fedfdd312
parentad9fe5f344c6ade92a8efab3202be356c94d5733
re PR c++/87324 (g++ ICE with overriding initializers: Segmentation fault)

/cp
2018-09-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/87324
* parser.c (cp_parser_initializer_list): Assign error_mark_node
to the index upon error.

/testsuite
2018-09-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/87324
* g++.dg/cpp0x/desig5.C: New.

From-SVN: r264428
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/desig5.C [new file with mode: 0644]