Hi! ICE on this test was fixed by r15-2131. This just adds test for it.
Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk as obvious. 2025-03-06 Jakub Jelinek <ja...@redhat.com> PR fortran/104826 * gfortran.dg/gomp/pr104826.f90: New test. --- gcc/testsuite/gfortran.dg/gomp/pr104826.f90.jj 2025-03-06 14:28:53.910892006 +0100 +++ gcc/testsuite/gfortran.dg/gomp/pr104826.f90 2025-03-06 14:28:45.766004575 +0100 @@ -0,0 +1,8 @@ +! PR fortran/104826 +program pr104826 + character(:), allocatable :: x + save + !$omp target + x = 'abc' + !$omp end target +end Jakub