https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117791
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at gcc dot gnu.org --- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- I am not getting the segfault here: $ gfc -Wall -fcheck=all newpr.f90 newpr.f90:15:48: 15 | write(*,*) 'line 4:',array(:, sort_2(i(1:2)) ) | ^ Warning: ‘parm.10.data’ may be used uninitialized [-Wmaybe-uninitialized] newpr.f90:15:48: 15 | write(*,*) 'line 4:',array(:, sort_2(i(1:2)) ) | ^ note: ‘parm.10’ declared here What is the version of gfortran you are using?