public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40461]  New: Interface mismatch in dummy procedure
@ 2009-06-16 15:20 michael dot a dot richmond at nasa dot gov
  2009-06-16 17:36 ` [Bug fortran/40461] " burnus at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2009-06-16 15:20 UTC (permalink / raw)
  To: gcc-bugs

I downloaded
http://users.physik.fu-berlin.de/~tburnus/gcc-trunk/gcc-trunk-x86_64.tar.gz and
attempted to compile the following module:

MODULE Nonlin_Conf_Regions
CONTAINS
SUBROUTINE halprn(deriv)
INTERFACE
  SUBROUTINE deriv(wt)
    REAL, INTENT(IN)     :: wt
  END SUBROUTINE deriv
END INTERFACE
END SUBROUTINE halprn
END MODULE Nonlin_Conf_Regions

PROGRAM Test_AS290
USE Nonlin_Conf_Regions
INTERFACE
  SUBROUTINE Logistic4(wt)
    REAL, INTENT(OUT)  :: wt
  END SUBROUTINE Logistic4
END INTERFACE
CALL halprn(Logistic4)
END PROGRAM Test_AS290

I got the message:

u.f90:19.12:

CALL halprn(Logistic4)
            1
Error: Interface mismatch in dummy procedure 'deriv' at (1): INTENT mismatch in
argument 'wt'

This is presumably connected with PR 36947/40039 written by Janus Weil. I don't
know whether the error message is valid.


-- 
           Summary: Interface mismatch in dummy procedure
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


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


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

end of thread, other threads:[~2009-06-18  9:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-16 15:20 [Bug fortran/40461] New: Interface mismatch in dummy procedure michael dot a dot richmond at nasa dot gov
2009-06-16 17:36 ` [Bug fortran/40461] " burnus at gcc dot gnu dot org
2009-06-16 17:50 ` janus at gcc dot gnu dot org
2009-06-18  8:49 ` burnus at gcc dot gnu dot org
2009-06-18  9:04 ` dominiq at lps dot ens dot fr

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).