Does this program make sense?

Does that mean gfortran has a bug? I mean, I am totally new to fortran.