Topic: 32 bit executable fails, 64 bit fine
This may be a gcc/gfortran library bug, but might be something related to your build of gfortran. The program below crashes with
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
when building with 32 bit architecture selected (-m32 flag), but executes correctly without error when 64 bit is selected.
character(len=:), dimension(:), allocatable::s
write(*,*)"shape of s: ",shape(s)
end program defer