This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71756] New: internal compiler error: in ~saved_token_sentinel, at cp/parser.c:1228
- From: "vegard.nossum at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Jul 2016 16:17:08 +0000
- Subject: [Bug c++/71756] New: internal compiler error: in ~saved_token_sentinel, at cp/parser.c:1228
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71756
Bug ID: 71756
Summary: internal compiler error: in ~saved_token_sentinel, at
cp/parser.c:1228
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vegard.nossum at gmail dot com
Target Milestone: ---
Using this:
struct t {
template<class F>
t(F &&f)
{
}
};
void foo()
{
(t([const &x]() { int y; }));
}
I get:
$ g++ internal-compiler-error.cc -lpthread
internal-compiler-error.cc: In lambda function:
internal-compiler-error.cc:10:25: internal compiler error: in
~saved_token_sentinel, at cp/parser.c:1228
(t([const &x]() { int y; }));
^
0x76d1e7 saved_token_sentinel::~saved_token_sentinel()
/home/vegard/git/gcc/gcc/cp/parser.c:1228
0x76d1e7 cp_parser_statement
/home/vegard/git/gcc/gcc/cp/parser.c:10350
0x76d524 cp_parser_statement_seq_opt
/home/vegard/git/gcc/gcc/cp/parser.c:10804
0x772f5e cp_parser_lambda_body
/home/vegard/git/gcc/gcc/cp/parser.c:10270
0x772f5e cp_parser_lambda_expression
/home/vegard/git/gcc/gcc/cp/parser.c:9754
0x746284 cp_parser_primary_expression
/home/vegard/git/gcc/gcc/cp/parser.c:4934
0x7512c6 cp_parser_postfix_expression
/home/vegard/git/gcc/gcc/cp/parser.c:6688
0x74f794 cp_parser_unary_expression
/home/vegard/git/gcc/gcc/cp/parser.c:7986
0x759867 cp_parser_cast_expression
/home/vegard/git/gcc/gcc/cp/parser.c:8663
0x759e16 cp_parser_binary_expression
/home/vegard/git/gcc/gcc/cp/parser.c:8764
0x75a6d0 cp_parser_assignment_expression
/home/vegard/git/gcc/gcc/cp/parser.c:9051
0x75c2b6 cp_parser_parenthesized_expression_list
/home/vegard/git/gcc/gcc/cp/parser.c:7457
0x75cd41 cp_parser_functional_cast
/home/vegard/git/gcc/gcc/cp/parser.c:25943
0x7511d3 cp_parser_postfix_expression
/home/vegard/git/gcc/gcc/cp/parser.c:6616
0x74f794 cp_parser_unary_expression
/home/vegard/git/gcc/gcc/cp/parser.c:7986
0x759867 cp_parser_cast_expression
/home/vegard/git/gcc/gcc/cp/parser.c:8663
0x759e16 cp_parser_binary_expression
/home/vegard/git/gcc/gcc/cp/parser.c:8764
0x75a6d0 cp_parser_assignment_expression
/home/vegard/git/gcc/gcc/cp/parser.c:9051
0x75d06a cp_parser_expression
/home/vegard/git/gcc/gcc/cp/parser.c:9220
0x74613e cp_parser_primary_expression
/home/vegard/git/gcc/gcc/cp/parser.c:4879
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ gcc --version
gcc (GCC) 7.0.0 20160520 (experimental)