https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109500
--- Comment #2 from Leandro Lupori <leandro.lupori at linaro dot org> --- Thanks for the quick response. What if 'f' is changed to this: function f() integer, allocatable :: f allocate(f) f = 123 deallocate(f) end function Is the program still invalid? gfortran -Wall doesn't complain in this case, but I get a SIGSEGV instead of SIGABRT.