http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47984
--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2011-03-04 19:16:27 UTC --- On Fri, Mar 04, 2011 at 06:58:19PM +0000, thenlich at users dot sourceforge.net wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47984 > > --- Comment #3 from Thomas Henlich <thenlich at users dot sourceforge.net> > 2011-03-04 18:58:06 UTC --- > Sorry, I don't understand why you consider the bug report invalid. You may > very > well be correct, but please explain. I am not such a Fortran expert, so I may > have missed something here. > gfortran has some support for Fortran 2003 and Fortran 2008 features. Under Fortran 2008, your program is a valid program. Under Fortran 2003 (and earlier), your program is invalid. By default gfortran accepts everything including vendor extensions. If you want to restrict gfortran to a particular standard, then you need to use the -std option. -std=gnu Default behavior. Accept a whole lotta garbage. -std=f95 Restricted to Fortran 95 standard. -std=f2003 Restricted to Fortran 2003 standard. -std=f2008 Restricted to Fortran 2008 standard.