https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104826
Bug ID: 104826 Summary: [11/12 Regression] ICE in gimple_range_global, at value-query.cc:424 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20210606 and 20210613 : $ cat z1.f90 program p character(:), allocatable :: x save !$omp target x = 'abc' !$omp end target end $ cat z2.f90 # no save program p character(:), allocatable :: x !$omp target x = 'abc' !$omp end target end $ gfortran-12-20210606 -c z1.f90 -fopenmp $ gfortran-12-20220213 -c z2.f90 -fopenmp $ $ gfortran-12-20220213 -c z1.f90 -fopenmp during GIMPLE pass: walloca z1.f90:5:12: 5 | x = 'abc' | ^ internal compiler error: Segmentation fault 0xccad7f crash_signal ../../gcc/toplev.cc:322 0xf5c9ec gimple_range_global(tree_node*) ../../gcc/value-query.cc:424 0x1864d80 ranger_cache::get_global_range(irange&, tree_node*) const ../../gcc/gimple-range-cache.cc:923 0x1860f8e gimple_ranger::export_global_ranges() ../../gcc/gimple-range.cc:474 0x189c0e1 pass_walloca::execute(function*) ../../gcc/gimple-ssa-warn-alloca.cc:381