public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39850]  New: Too strict checking for procedures as actual argument
@ 2009-04-22 14:56 burnus at gcc dot gnu dot org
  2009-04-22 16:56 ` [Bug fortran/39850] " janus at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-04-22 14:56 UTC (permalink / raw)
  To: gcc-bugs

Issue came up when testing/rewiewing proc pointers, cf.
http://gcc.gnu.org/ml/fortran/2009-04/msg00214.html

The following program is believed to be correct and it runs with g95, NAG f95,
sunf95, openf95, and ifort, but not with gfortran:
  Error: Type/rank mismatch in argument 'a'

real function func()
 func = 42.0
end function func

program test
  external func  ! subroutine or implicitly typed real function
  call sub(func) ! Error: Type/rank mismatch in argument 'a'
contains
  subroutine sub(a)
   real, external :: a
   print *, a(0.4)
  end subroutine sub
end


-- 
           Summary: Too strict checking for procedures as actual argument
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-06-22 21:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-22 14:56 [Bug fortran/39850] New: Too strict checking for procedures as actual argument burnus at gcc dot gnu dot org
2009-04-22 16:56 ` [Bug fortran/39850] " janus at gcc dot gnu dot org
2009-06-20 14:12 ` janus at gcc dot gnu dot org
2009-06-20 14:41 ` janus at gcc dot gnu dot org
2009-06-20 15:17 ` janus at gcc dot gnu dot org
2009-06-20 17:44 ` burnus at gcc dot gnu dot org
2009-06-21 19:06 ` janus at gcc dot gnu dot org
2009-06-21 19:16 ` janus at gcc dot gnu dot org
2009-06-22  8:29 ` dominiq at lps dot ens dot fr
2009-06-22  9:04 ` janus at gcc dot gnu dot org
2009-06-22 14:18 ` dominiq at lps dot ens dot fr
2009-06-22 21:03 ` janus 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).