https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113845
--- Comment #3 from kargl at gcc dot gnu.org --- (In reply to kargl from comment #2) > (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. Whoops, after compiling I ran the wrong test code through gfortran. This appears to be a red-herring. :(