https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87689
--- Comment #2 from Judicaël Grasset <judicael.grasset at stfc dot ac.uk> --- I have tried with gfortran 8.2.0 I have compiled with: gfortran -g main.f doesntwork_p8.f -Wall -Wextra -o exe When running I get: 1 2 3 4 5 0 � foo So it seems the problem still exist. If I add fcheck=all at the compilation, I do not get any run-time error message when executing the program, but the result is still wrong: 1 2 3 4 5 -46855 o foo