public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/23677] New: -fno-automatic does not accept legal save statements
@ 2005-09-01 13:08 federico dot carminati at cern dot ch
  2005-09-01 13:09 ` [Bug fortran/23677] " federico dot carminati at cern dot ch
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: federico dot carminati at cern dot ch @ 2005-09-01 13:08 UTC (permalink / raw)
  To: gcc-bugs

The following code fails

[/Users/fca] more test.f
      subroutine test(bbb)
      implicit double precision (A-H,O-Z)
      double precision blob(100),bbb(100)
      data blob /100*-1/
      save blob
      do j=1,100
        blob(j)=bbb(j)
      enddo
      end
[/Users/fca] /opt/gcc-4_0/bin/gfortran -c -fno-automatic test.f
 In file test.f:3

      double precision blob(100),bbb(100)                               
                               1
Error: Duplicate SAVE attribute specified at (1)

Two remarks. 

- Non-contraddictory declarations should not cause compilation to fail (see with double precision)

- A compiler switch should not turn valid code into non-compilable code

-- 
           Summary: -fno-automatic does not accept legal save statements
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: federico dot carminati at cern dot ch
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: Darwin 8.2.0 Power Macintosh powerpc


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-09-29 21:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-01 13:08 [Bug fortran/23677] New: -fno-automatic does not accept legal save statements federico dot carminati at cern dot ch
2005-09-01 13:09 ` [Bug fortran/23677] " federico dot carminati at cern dot ch
2005-09-06 19:31 ` dir at lanl dot gov
2005-09-06 19:33 ` dir at lanl dot gov
2005-09-09 15:10 ` tobi at gcc dot gnu dot org
2005-09-26 20:07 ` cvs-commit at gcc dot gnu dot org
2005-09-29 21:27 ` cvs-commit at gcc dot gnu dot org
2005-09-29 21:32 ` 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).