https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118590

--- Comment #6 from Sam James <sjames at gcc dot gnu.org> ---
full backtrace:
```
$ g++ p.cxx -fopenacc -c
p.cxx: In function ‘void cholesky_decomposition(mdspan<T, CA>&)’:
p.cxx:8:60: internal compiler error: in build_omp_array_section, at
cp/typeck.cc:4871
    8 |   #pragma acc enter data copyin(dA.pdata[0 : dA.pdatalength])
      |                                                            ^
0x55dfb33a44fa internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517
0x55dfb33a4695 fancy_abort(char const*, int, char const*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1722
0x55dfb295b9e0 build_omp_array_section(unsigned long, tree_node*, tree_node*,
tree_node*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/typeck.cc:4871
0x55dfb2905c4d cp_parser_omp_var_list_no_open
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:39064
0x55dfb29061a7 cp_parser_oacc_data_clause
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:39246
0x55dfb2931363 cp_parser_oacc_all_clauses
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:43118
0x55dfb29326ed cp_parser_oacc_enter_exit_data
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:49114
0x55dfb2943fda cp_parser_omp_construct
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:52733
0x55dfb1af47e2 cp_parser_pragma
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:53406
0x55dfb363f5e5 cp_parser_statement
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:13116
0x55dfb363c00d cp_parser_statement_seq_opt
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:13744
0x55dfb363c00d cp_parser_compound_statement
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:13591
0x55dfb3636039 cp_parser_function_body
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:26544
0x55dfb3636039 cp_parser_ctor_initializer_opt_and_function_body
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:26595
0x55dfb3636039 cp_parser_function_definition_after_declarator
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:33440
0x55dfb359d177 cp_parser_function_definition_from_specifiers_and_declarator
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:33357
0x55dfb359d177 cp_parser_init_declarator
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:23884
0x55dfb381cf63 cp_parser_single_declaration
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:33851
0x55dfb381b2e1 cp_parser_template_declaration_after_parameters
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:33509
0x55dfb380aabb cp_parser_explicit_template_declaration
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:33679
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
```

Reply via email to