https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104650
--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 62889 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62889&action=edit Failing testcase with the previous attachment applied. The attachement is from F2018: C.2.6 Final subroutines (7.5.6, 7.5.6.2, 7.5.6.3, 7.5.6.4) It compiles but fails in runtime with: Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: #0 0x7f88c6409055 in ??? #1 0x7f88c6408045 in ??? #2 0x7f88c62262bf in ??? #3 0x7f88c628f737 in ??? #4 0x401a9f in __m_MOD_finalize_t1s at /home/pault/prs/pdt/standard_2.f90:17 #5 0x40187a in __m_MOD___final_m_Pdtt_4 at /home/pault/prs/pdt/standard_2.f90:34 #6 0x402247 in example at /home/pault/prs/pdt/standard_2.f90:51 #7 0x40227e in MAIN__ at /home/pault/prs/pdt/standard_2.f90:37 #8 0x402315 in main at /home/pault/prs/pdt/standard_2.f90:36 Segmentation fault (core dumped) ./a.out Paul
