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

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-10-29 
15:17:19 UTC ---
(In reply to comment #2)
> Well, I see in the standard:
[Fortran 2008]
> "C553   An entity with the SAVE attribute shall be a common block, variable, 
> or
> procedure pointer."
> 
> And I would argue that a namelist-group-name is neither a common block, a
> variable nor a procedure pointer.

See also
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/07da50d1aaf3870d
- there, the argument seems to be the same, though the reference is R544.

 * * *

>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.

Reply via email to