https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109453
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- Works for me. gfcx -o z -O a.f90 -fcheck=all && ./z 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 21 19 -1 1 20 19 0 hotrats:kargl[321] valgrind ./z ==50637== Memcheck, a memory error detector ==50637== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==50637== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info ==50637== Command: ./z ==50637== 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 21 19 -1 1 20 19 0 ==50637== ==50637== HEAP SUMMARY: ==50637== in use at exit: 0 bytes in 0 blocks ==50637== total heap usage: 20 allocs, 20 frees, 9,661 bytes allocated ==50637== ==50637== All heap blocks were freed -- no leaks are possible ==50637== ==50637== For lists of detected and suppressed errors, rerun with: -s ==50637== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)