[Bug c++/102593] New: [10/11/12 Regression] ICE in cp_oacc_check_attachments, at cp/semantics.c:6561
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Oct 4 18:39:11 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102593
Bug ID: 102593
Summary: [10/11/12 Regression] ICE in
cp_oacc_check_attachments, at cp/semantics.c:6561
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: ---
Changed between 20191215 and 20200105 :
$ cat z1.cc
template <class>
void f ()
{
struct t { int a; };
#pragma acc data detach (t.a)
;
}
$ g++-12-20211003 -c z1.cc -fopenacc
z1.cc: In function 'void f()':
z1.cc:5:32: internal compiler error: Segmentation fault
5 | #pragma acc data detach (t.a)
| ^
0xe17d4f crash_signal
../../gcc/toplev.c:331
0x8f6da6 cp_oacc_check_attachments
../../gcc/cp/semantics.c:6561
0x90842a finish_omp_clauses(tree_node*, c_omp_region_type)
../../gcc/cp/semantics.c:7850
0x897fb4 cp_parser_oacc_all_clauses
../../gcc/cp/parser.c:39710
0x8b3009 cp_parser_oacc_data
../../gcc/cp/parser.c:44231
0x8b3009 cp_parser_omp_construct
../../gcc/cp/parser.c:46870
0x8897b9 cp_parser_pragma
../../gcc/cp/parser.c:47594
0x8905b7 cp_parser_statement
../../gcc/cp/parser.c:12266
0x8913d4 cp_parser_statement_seq_opt
../../gcc/cp/parser.c:12722
0x89148f cp_parser_compound_statement
../../gcc/cp/parser.c:12671
0x8af888 cp_parser_function_body
../../gcc/cp/parser.c:24902
0x8af888 cp_parser_ctor_initializer_opt_and_function_body
../../gcc/cp/parser.c:24953
0x8afd36 cp_parser_function_definition_after_declarator
../../gcc/cp/parser.c:31083
0x8b0c57 cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/cp/parser.c:30999
0x8b0c57 cp_parser_init_declarator
../../gcc/cp/parser.c:22436
0x8b35b6 cp_parser_single_declaration
../../gcc/cp/parser.c:31586
0x8b37d5 cp_parser_template_declaration_after_parameters
../../gcc/cp/parser.c:31151
0x8b3f9b cp_parser_explicit_template_declaration
../../gcc/cp/parser.c:31417
0x8b3f9b cp_parser_template_declaration_after_export
../../gcc/cp/parser.c:31436
0x8b61f9 cp_parser_declaration
../../gcc/cp/parser.c:14759
More information about the Gcc-bugs
mailing list