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; 2+ 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] 2+ messages in thread

* [Bug fortran/27318] gfortran should warn if a interface does not match
  2006-04-25 18:13 [Bug fortran/27318] New: gfortran should warn if a interface does not match tobias dot burnus at physik dot fu-berlin dot de
@ 2006-04-25 18:39 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-25 18:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-25 18:39 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-25 18:39:13
               date|                            |


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


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

end of thread, other threads:[~2006-04-25 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-25 18:13 [Bug fortran/27318] New: gfortran should warn if a interface does not match 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).