public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/19425] New: Duplicate SAVE attribute problem
@ 2005-01-13 14:26 tow21 at cam dot ac dot uk
  2005-01-13 14:59 ` [Bug fortran/19425] " tow21 at cam dot ac dot uk
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: tow21 at cam dot ac dot uk @ 2005-01-13 14:26 UTC (permalink / raw)
  To: gcc-bugs

Consider the following program: 
parabrisas:~/test% cat C578.f  
      subroutine s( ) 
      logical frstme 
      save frstme 
      save 
      continue 
      end 
 
Under constraint C578 of the f95 standard this is illegal, since a global save 
is not permitted in the same scoping unit as any other explicit use of the 
save attribute or save statement. gfortran correctly recognises this and 
diagnoses an error. 
 
However, this constraint did not exist in F77 (I am unsure about F90). 
Therefore, the above is a perfectly legal F77 program (and, indeed g77 
compiles it without complaint).

-- 
           Summary: Duplicate SAVE attribute problem
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tow21 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-19425-7575@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-24 15:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-13 14:26 [Bug fortran/19425] New: Duplicate SAVE attribute problem tow21 at cam dot ac dot uk
2005-01-13 14:59 ` [Bug fortran/19425] " tow21 at cam dot ac dot uk
2005-01-14 23:41 ` pinskia at gcc dot gnu dot org
2005-02-13 14:59 ` pinskia at gcc dot gnu dot org
2005-03-22 18:36 ` kargl at gcc dot gnu dot org
2005-05-06 13:08 ` Konrad dot Bernloehr at mpi-hd dot mpg dot de
2005-05-06 13:22 ` tow21 at cam dot ac dot uk
2005-05-07 15:56 ` tobi at gcc dot gnu dot org
2005-09-18  5:36 ` pinskia at gcc dot gnu dot org
     [not found] <bug-19425-7575@http.gcc.gnu.org/bugzilla/>
2005-10-24 15:09 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).