public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40451]  New: procedure-pointer assignment rejected
@ 2009-06-15 21:10 burnus at gcc dot gnu dot org
  2009-06-15 21:11 ` [Bug fortran/40451] " burnus at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-06-15 21:10 UTC (permalink / raw)
  To: gcc-bugs

The following program is rejected with:

    f => sin
         1
Error: Interfaces don't match in procedure pointer assignment at (1)

However, if one removes the "module m; contains" it is accepted


module m
contains
  function f()
    intrinsic :: sin
    procedure(sin), pointer :: f
    f => sin
  end function f
end module m


-- 
           Summary: procedure-pointer assignment rejected
           Product: gcc
           Version: 4.5.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=40451


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-15 21:10 [Bug fortran/40451] New: procedure-pointer assignment rejected burnus at gcc dot gnu dot org
2009-06-15 21:11 ` [Bug fortran/40451] " burnus at gcc dot gnu dot org
2009-06-17  8:34 ` janus at gcc dot gnu dot org
2009-06-17  8:54 ` [Bug fortran/40451] [F03] procedure pointer " janus at gcc dot gnu dot org
2009-06-17  9:26 ` janus at gcc dot gnu dot org
2009-06-18  8:10 ` janus at gcc dot gnu dot org
2009-06-18  8:13 ` 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).