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

  • [Bug fortran/28309] New:... tobias dot burnus at physik dot fu-berlin dot de

Reply via email to