https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52846
--- Comment #13 from Salvatore Filippone <sfilippone at uniroma2 dot it> --- Created attachment 35996 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35996&action=edit test case Cleaned up a bit of noise due to the process of reducing the test case: it was spitting out a legitimate but pointless liker error about erractionrestore. [sfilippo@jacobi tlink]$ gfortran -o testlk testlk.f90 /tmp/ccbhv5VA.o: In function `__error_impl_mod_MOD_ser_error_print_stack': testlk.f90:(.text+0x1b): undefined reference to `__error_mod_MOD_serror' /tmp/ccbhv5VA.o: In function `__error_impl_mod_MOD_par_error_print_stack': testlk.f90:(.text+0x3b): undefined reference to `__error_mod_MOD_perror' /tmp/ccbhv5VA.o: In function `__error_mod_MOD_par_error_handler': testlk.f90:(.text+0x6a): undefined reference to `__error_mod_MOD_perror' testlk.f90:(.text+0x86): undefined reference to `__error_mod_MOD_perror' /tmp/ccbhv5VA.o: In function `__error_mod_MOD_ser_error_handler': testlk.f90:(.text+0xa5): undefined reference to `__error_mod_MOD_serror' /tmp/ccbhv5VA.o: In function `MAIN__': testlk.f90:(.text+0xda): undefined reference to `__error_mod_MOD_serror' collect2: error: ld returned 1 exit status