https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61337
--- Comment #3 from Vladimir Fuka <vladimir.fuka at gmail dot com> --- The crash is at line 22: allocate(a(size(tmp)+1)%items(size(e)), source = e) ASAN:SIGSEGV ================================================================= ==5902==ERROR: AddressSanitizer: SEGV on unknown address 0x60c0c08ef6b0 (pc 0x0000004086ed bp 0x7ffec4dcc6b0 sp 0x7ffec4dcc490 T0) #0 0x4086ec in __array_list_MOD_add_item /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:22 #1 0x408ff4 in MAIN__ /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:35 #2 0x4096d5 in main /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:30 #3 0x7f898a67eb04 in __libc_start_main (/lib64/libc.so.6+0x21b04) #4 0x400e38 (/home/vf1r14/f/testy/stackoverflow/a.out+0x400e38) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:22 __array_list_MOD_add_item ==5902==ABORTING