https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104100
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org Known to work| |12.0 --- Comment #1 from kargl at gcc dot gnu.org --- Works with 12.0 % ~/work/bin/gcc -c -O aa.c % gfcx -o z a.f90 -O aa.o % ./z 1 2 3 4 5 Before 1 5 1 2 3 4 5 After: 1 5 Thanks for the bug report, but it should likely be closed with WONTFIX due to the complexity of the changes to ISO_Fortran_binding.h and CFI support. I'll let active gfortran contributors make that decision.