https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106410
--- Comment #3 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #2) > ICE confirmed on x86_64-pc-linux-gnu. > > Not sure if the code is valid. > > Intel rejects the code, as well as NAG. Cray accepts it. Interestingly, I may have done an accidental bisection. % gfcx -c --version a.f90 GNU Fortran (GCC) 13.0.0 20220621 (experimental) This fails with an ICE. The results reported in comment #1 are with gfortran on my laptop. It may have a few unsubmitted or committed patches. I check later today.