public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42418]  New: PROCEDURE: Rejects interfface which is both specific and generic procedure
@ 2009-12-17 22:51 burnus at gcc dot gnu dot org
  2009-12-17 23:02 ` [Bug fortran/42418] PROCEDURE: Rejects interface " burnus at gcc dot gnu dot org
  2009-12-19 20:27 ` janus at gcc dot gnu dot org
  0 siblings, 2 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-12-17 22:51 UTC (permalink / raw)
  To: gcc-bugs

(found when going through the link of PR 

gfortran rejects the following program where "gen" is both a generic and a
specific procedure name as interface argument to PROCEDURE. I cannot find a
reason why it should be invalid and thus I think it is valid.


    procedure(gen) :: f
                 1
Error: Interface 'gen' at (1) may not be generic


module mod
  interface gen
    module procedure gen
  end interface gen
contains
  pure subroutine gen(a)
    integer,intent(in) :: a
  end subroutine gen
  subroutine test(f)
    procedure(gen) :: f
  end subroutine test
end module mod


-- 
           Summary: PROCEDURE: Rejects interfface which is both specific and
                    generic procedure
           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=42418


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

end of thread, other threads:[~2012-07-31 18:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-42418-4@http.gcc.gnu.org/bugzilla/>
2011-01-09 19:07 ` [Bug fortran/42418] PROCEDURE: Rejects interface which is both specific and generic procedure janus at gcc dot gnu.org
2011-01-09 22:02 ` janus at gcc dot gnu.org
2012-01-28 23:17 ` dominiq at lps dot ens.fr
2012-07-21  9:52 ` janus at gcc dot gnu.org
2012-07-21 17:10 ` janus at gcc dot gnu.org
2012-07-31 18:33 ` janus at gcc dot gnu.org
2012-07-31 18:39 ` janus at gcc dot gnu.org
2009-12-17 22:51 [Bug fortran/42418] New: PROCEDURE: Rejects interfface " burnus at gcc dot gnu dot org
2009-12-17 23:02 ` [Bug fortran/42418] PROCEDURE: Rejects interface " burnus at gcc dot gnu dot org
2009-12-19 20:27 ` 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).