public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/27318]  New: gfortran should warn if a interface does not match
@ 2006-04-25 18:13 tobias dot burnus at physik dot fu-berlin dot de
  2006-04-25 18:39 ` [Bug fortran/27318] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 8+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2006-04-25 18:13 UTC (permalink / raw)
  To: gcc-bugs

Test case:
------------------------------
module test
implicit none
interface
   subroutine hello(n)
     integer :: n
   end subroutine hello
end interface
end module test

subroutine hello(n)
  integer, intent(in) :: n
  integer :: i
  do i = 1,n; print *, 'hello'; end do
end subroutine hello
------------------------------

In the interface, "n" is implicitly "intent(inout)".
gfortran -Wall does not warn, NAG f95 does:
------------
Error: test3.f90: Inconsistent INTERFACE block for procedure HELLO from TEST
       Argument N (no. 1) has a different INTENT
[f95 error termination]
------------


-- 
           Summary: gfortran should warn if a interface does not match
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: enhancement
          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=27318


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

end of thread, other threads:[~2020-07-05 18:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-27318-4@http.gcc.gnu.org/bugzilla/>
2010-12-28 18:24 ` [Bug fortran/27318] gfortran should warn if a interface does not match dfranke at gcc dot gnu.org
2010-12-28 18:26 ` dfranke at gcc dot gnu.org
2020-06-13 17:17 ` tkoenig at gcc dot gnu.org
2020-06-14 10:17 ` tkoenig at gcc dot gnu.org
2020-06-30 20:13 ` tkoenig at gcc dot gnu.org
2020-07-05 18:15 ` cvs-commit at gcc dot gnu.org
2020-07-05 18:16 ` tkoenig at gcc dot gnu.org
2006-04-25 18:13 [Bug fortran/27318] New: " tobias dot burnus at physik dot fu-berlin dot de
2006-04-25 18:39 ` [Bug fortran/27318] " 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).