This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50556] cannot save namelist group name
- From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 29 Oct 2011 16:51:10 +0000
- Subject: [Bug fortran/50556] cannot save namelist group name
- Auto-submitted: auto-generated
- References: <bug-50556-4@http.gcc.gnu.org/bugzilla/>
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.