http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55022
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-10-22 14:24:51 UTC --- Created attachment 28507 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28507 compressed archive for the test The attachment contains the original source air_main.f90 without the subroutines botwall and topwall which are in the files botwall.f90 and topwall.f90, and the files datax.inp and datay.inp needed to run the test. It can be used as gfc -c -O2 -fgraphite-identity air_main.f90 gfortran -c -O2 -fgraphite-identity botwall.f90 topwall.f90 gfc air_main.o botwall.o topwall.o With gfc any post r190619 gfortran and gfortran any version pre r188694, this will give a working executable. If botwall.f90 and/or topwall.f90 is compiled with a post r190619 gfortran, the executable will give NANs.