re PR c++/49867 ([C++0x] ICE on lambda inside switch with case labels in the lambda)
authorJason Merrill <jason@redhat.com>
Sat, 30 Jul 2011 06:22:06 +0000 (02:22 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 30 Jul 2011 06:22:06 +0000 (02:22 -0400)
commitee27f97bd8b9ac9dc6b7b5f4e4d47e09a8d915ce
tree1e636295e742f75887235c00d396585271a6affd
parent8c882891938e25799ab256e9f229efa3c8e3dea6
re PR c++/49867 ([C++0x] ICE on lambda inside switch with case labels in the lambda)

PR c++/49867
* parser.c (cp_parser_lambda_expression): Also clear in_statement
and in_switch_statement_p.
(cp_parser_class_specifier): Likewise.

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