http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60088
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at gcc dot gnu.org --- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- I can reproduce this by combining the source into one file and compiling as follows: gfc -static -m32 sip_test.f90 My machine here is x86-64, linux. (Fedora F $ gfc -static -m32 sip_test.f90 $ ./a.out Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: #0 0x805D9EF in _gfortrani_backtrace at backtrace.c:258 #1 0x804C4EB in _gfortrani_backtrace_handler at compile_options.c:129 #2 0xF77DA3FF #3 0x80492EE in sip_ #4 0x804C01F in MAIN__ at sip_test.f90:? Segmentation fault (core dumped) Using gdb the fault occurs at the first assignment in subroutine sip b=zero Works fine on -m64