re PR c++/84493 (ICE with invalid cast)
authorMarek Polacek <polacek@redhat.com>
Thu, 22 Feb 2018 11:18:37 +0000 (11:18 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 22 Feb 2018 11:18:37 +0000 (11:18 +0000)
commitcaa7952a43833c6bd6b58d8432ec0a6ee1f0a945
tree591cf5f9047dd7c6f9b6d277122504d34a618a00
parentc8fe60e37235378e8879477815215ba127e9c3e1
re PR c++/84493 (ICE with invalid cast)

PR c++/84493
* parser.c (cp_parser_braced_list): Use require_open instead of
consume_open.

* g++.dg/parse/error59.C: New test.

From-SVN: r257899
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error59.C [new file with mode: 0644]