https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108545
Bug ID: 108545 Summary: [13 Regression] ICE in install_var_field, at omp-low.cc:799 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started between 20220911 and 20220918 : $ cat z1.f90 program p type t integer, pointer :: a(:) end type type(t), volatile :: x !$omp target enter data map(to: x%a) end $ cat z2.f90 program p type t integer, pointer :: a(:) end type type(t) :: x !$omp target enter data map(to: x%a) end $ gfortran-13-20230122 -c z2.f90 -fopenmp $ gfortran-12 -c z1.f90 -fopenmp $ $ gfortran-13-20230122 -c z1.f90 -fopenmp during GIMPLE pass: omplower z1.f90:6:39: 6 | !$omp target enter data map(to: x%a) | ^ internal compiler error: in install_var_field, at omp-low.cc:799 0xc6accb install_var_field ../../gcc/omp-low.cc:798 0xc6f882 scan_sharing_clauses ../../gcc/omp-low.cc:1678 0xc71c24 scan_omp_target ../../gcc/omp-low.cc:3111 0xc7282d scan_omp_1_stmt ../../gcc/omp-low.cc:4327 0xaf96a6 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:608 0xaf9880 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:51 0xaf9761 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:635 0xaf9880 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:51 0xaf9761 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:635 0xaf9880 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:51 0xc6852d scan_omp ../../gcc/omp-low.cc:4377 0xc7c73a execute_lower_omp ../../gcc/omp-low.cc:14691 0xc7c73a execute ../../gcc/omp-low.cc:14755