http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50556

--- Comment #5 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 
2011-10-29 16:51:10 UTC ---
On Sat, Oct 29, 2011 at 03:17:19PM +0000, burnus at gcc dot gnu.org wrote:
> >From c.l.f:
> > Unfortunately, I also found that gfortran has interpreted something like
> >      namelist /cmd/ i, j, k
> >      save cmd
> > to mean
> >     namelist /cmd/ i, j, k
> >     save i, j, k
> 
> The question is whether one needs to allow it.
> 
> g95 and gfortran allow the code
> ifort, NAG f95, g77 (!), pathf95/openf95/crayftn reject it.
> PGI warns "Symbol, i, appears illegally in a SAVE statement"
> 
> Thus, I wouldn't mind breaking the backward compatibility.

I vote that gfortran should follow the majority and simply
issue an error.

Reply via email to