re PR c++/61857 (An init-capturing lambda is parsed incorrectly when used in a braced...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 23 Sep 2014 18:07:59 +0000 (18:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 23 Sep 2014 18:07:59 +0000 (18:07 +0000)
commit9a9f3c8f1e05cec05b02b8b79e6a5531ba8dc377
treecc7176301d6b9e77036a648226d04212b4efe368
parent866e32ad336f1698809cc03c48f884379d6b39e0
re PR c++/61857 (An init-capturing lambda is parsed incorrectly when used in a braced-init-list)

/cp
2014-09-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/61857
* parser.c (cp_parser_skip_to_closing_square_bracket,
cp_parser_array_designator_p): New.
(cp_parser_initializer_list): Use the latter.

/testsuite
2014-09-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/61857
* g++.dg/cpp1y/lambda-init10.C: New.

From-SVN: r215528
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/lambda-init10.C [new file with mode: 0644]