https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78351
--- Comment #8 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Tue, Nov 15, 2016 at 11:21:05PM +0000, jvdelisle at gcc dot gnu.org wrote: > > I just finished fixing another issue and am now looking at this one. Generally > speaking if code worked before under g77, we do our best to have it work under > gfortran with -std=gnu which is the default, then if something violates f95 or > later we will give error with -std=f95. I will post back here what I determine > as far as what the bug specifically is. > With 15 years of hindsight, I think that the decision to support whatever g77 supported may have been a mistake. The nonstandard behavior, that is the subject of this PR, also violates the F66 standard. PS: I think -std=f2008 should be gfortran's default, and all of the nonstandards hidden behind -std=legacy.