https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107074 --- Comment #2 from anlauf at gcc dot gnu.org --- We also crash in the same place on: program p implicit none procedure(real), pointer :: a print *, merge(a, a, .true.) end