[Bug c++/60375] New: [4.9 Regression] ICE with invalid use of lambda
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 1 00:13:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60375
Bug ID: 60375
Summary: [4.9 Regression] ICE with invalid use of lambda
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: error-recovery, ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
The following invalid testcase (compiled with "-std=c++11") triggers
an ICE on trunk:
===============================================
struct A
{
decltype( [](){ return this; }() ) x;
};
===============================================
bug.cc:3:13: error: lambda-expression in unevaluated context
decltype( [](){ return this; }() ) x;
^
bug.cc: In lambda function:
bug.cc:3:26: internal compiler error: Segmentation fault
decltype( [](){ return this; }() ) x;
^
0xbaa60f crash_signal
../../gcc/gcc/toplev.c:337
0x7587ed contains_struct_check
../../gcc/gcc/tree.h:2822
0x7587ed rvalue(tree_node*)
../../gcc/gcc/cp/tree.c:698
0x6b5fd2 cp_parser_primary_expression
../../gcc/gcc/cp/parser.c:4353
0x6b84cd cp_parser_postfix_expression
../../gcc/gcc/cp/parser.c:5971
0x6bb493 cp_parser_unary_expression
../../gcc/gcc/cp/parser.c:7170
0x6bc17f cp_parser_binary_expression
../../gcc/gcc/cp/parser.c:7874
0x6bc661 cp_parser_assignment_expression
../../gcc/gcc/cp/parser.c:8112
0x6bea73 cp_parser_expression
../../gcc/gcc/cp/parser.c:8274
0x6b7bf2 cp_parser_expression
../../gcc/gcc/cp/parser.c:8313
0x6b7bf2 cp_parser_lambda_body
../../gcc/gcc/cp/parser.c:9228
0x6b7bf2 cp_parser_lambda_expression
../../gcc/gcc/cp/parser.c:8757
0x6b7bf2 cp_parser_primary_expression
../../gcc/gcc/cp/parser.c:4305
0x6b84cd cp_parser_postfix_expression
../../gcc/gcc/cp/parser.c:5971
0x6b9a3e cp_parser_decltype_expr
../../gcc/gcc/cp/parser.c:11904
0x6b9a3e cp_parser_decltype
../../gcc/gcc/cp/parser.c:12003
0x6ba117 cp_parser_qualifying_entity
../../gcc/gcc/cp/parser.c:5494
0x6ba117 cp_parser_nested_name_specifier_opt
../../gcc/gcc/cp/parser.c:5249
0x6baadb cp_parser_nested_name_specifier
../../gcc/gcc/cp/parser.c:5448
0x6b2cd3 cp_parser_using_declaration
../../gcc/gcc/cp/parser.c:15938
Please submit a full bug report, [etc.]
More information about the Gcc-bugs
mailing list