PR c++/84493
commit276194f46216c6af0440e4f78b59fa6b927a1ce7
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Feb 2018 11:18:37 +0000 (22 11:18 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Feb 2018 11:18:37 +0000 (22 11:18 +0000)
tree591cf5f9047dd7c6f9b6d277122504d34a618a00
parent1bb5acc0558e8f74b2f82757de7249a003fc2c06
PR c++/84493
* parser.c (cp_parser_braced_list): Use require_open instead of
consume_open.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257899 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error59.C [new file with mode: 0644]