[Bug c++/102433] New: [11/12 Regression] ICE in ~saved_token_sentinel, at cp/parser.c:1293
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Tue Sep 21 19:19:12 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102433
Bug ID: 102433
Summary: [11/12 Regression] ICE in ~saved_token_sentinel, at
cp/parser.c:1293
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started between 20210404 and 20210411 :
(gcc configured with --enable-checking=yes)
$ cat z1.cc
void f ()
{
#pragma omp task depend(in:this)
;
}
$ g++-12-20210919 -c z1.cc -fopenmp
z1.cc: In function 'void f()':
z1.cc:3:29: error: invalid use of 'this' in non-member function
3 | #pragma omp task depend(in:this)
| ^
z1.cc:4:3: internal compiler error: in ~saved_token_sentinel, at
cp/parser.c:1293
4 | ;
| ^
0x8f2770 saved_token_sentinel::~saved_token_sentinel()
../../gcc/cp/parser.c:1293
0x8f2770 cp_parser_statement
../../gcc/cp/parser.c:12062
0x8f2894 cp_parser_statement_seq_opt
../../gcc/cp/parser.c:12713
0x8f2977 cp_parser_compound_statement
../../gcc/cp/parser.c:12662
0x9182f0 cp_parser_function_body
../../gcc/cp/parser.c:24893
0x9182f0 cp_parser_ctor_initializer_opt_and_function_body
../../gcc/cp/parser.c:24944
0x91896a cp_parser_function_definition_after_declarator
../../gcc/cp/parser.c:31066
0x919be4 cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/cp/parser.c:30982
0x919be4 cp_parser_init_declarator
../../gcc/cp/parser.c:22427
0x8ef1c2 cp_parser_simple_declaration
../../gcc/cp/parser.c:15133
0x920d5e cp_parser_declaration
../../gcc/cp/parser.c:14819
0x921985 cp_parser_translation_unit
../../gcc/cp/parser.c:4978
0x921985 c_parse_file()
../../gcc/cp/parser.c:47694
0xaa4682 c_common_parse_file()
../../gcc/c-family/c-opts.c:1236
More information about the Gcc-bugs
mailing list