https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113845
--- Comment #2 from kargl at gcc dot gnu.org --- (In reply to kargl from comment #1) > Thanks. Reduce test case. > > subroutine test_adjustl(x) > character(*) :: x(100) > call bar(adjustl(x)) > end subroutine Forcing gfc_simplify_adjustl to return NULL fixes this issue. Likely, simplification trashes the stack because ubound is unknown.