[Bug c++/49867] [C++0x] ICE on lambda inside switch with case labels in the lambda
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jul 30 06:22:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49867
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-30 06:22:09 UTC ---
Author: jason
Date: Sat Jul 30 06:22:06 2011
New Revision: 176958
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176958
Log:
PR c++/49867
* parser.c (cp_parser_lambda_expression): Also clear in_statement
and in_switch_statement_p.
(cp_parser_class_specifier): Likewise.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list