public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28309]  New: -std=f2003 and call flush()
@ 2006-07-08  6:58 tobias dot burnus at physik dot fu-berlin dot de
  2006-07-08 18:23 ` [Bug fortran/28309] " kargl at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2006-07-08  6:58 UTC (permalink / raw)
  To: gcc-bugs

If I compile the program
-------------------
program test
  write(*,*) 'Hello'
  call flush()
end program test
-------------------
without options, it works.
However, using -std=f2003:
/tmp/cc4pdLnc.o: In function `MAIN__':
flush.f90:(.text+0x77): undefined reference to `flush_'

Expected: As flush is part of Fortran 2003, it should work.


-- 
           Summary: -std=f2003 and call flush()
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tobias dot burnus at physik dot fu-berlin dot de


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


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

* [Bug fortran/28309] -std=f2003 and call flush()
  2006-07-08  6:58 [Bug fortran/28309] New: -std=f2003 and call flush() tobias dot burnus at physik dot fu-berlin dot de
@ 2006-07-08 18:23 ` kargl at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-07-08 18:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from kargl at gcc dot gnu dot org  2006-07-08 18:23 -------
FLUSH is not a subroutine in F2003.  The FLUSH() subroutine extension
is excluded from the list of intrinsic procedures that gfortran
supplies when you set -std=f2003.

See the F2003 standard for the correct syntax.  One example is

program test
  open(unit=10,file='tmp')
  write(10,*) 'Hello'
  flush(10)
end program test


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2006-07-08 18:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-08  6:58 [Bug fortran/28309] New: -std=f2003 and call flush() tobias dot burnus at physik dot fu-berlin dot de
2006-07-08 18:23 ` [Bug fortran/28309] " kargl 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).