https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92873
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #2 from anlauf at gcc dot gnu.org ---
Adding a declaration of sub as elemental seems to avoid the ICE:
elemental subroutine sub (x)
character(*), intent(in) :: x
end subroutine sub
whereas a non-elemental version does not help:
subroutine sub (x)
character(*), intent(in) :: x(:)
end subroutine sub