public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/63552] New: [OOP] Type-bound procedures rejected as actual argument to dummy procedure
@ 2014-10-16  5:07 burnus at gcc dot gnu.org
  2014-10-16 10:10 ` [Bug fortran/63552] " dominiq at lps dot ens.fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-10-16  5:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63552

            Bug ID: 63552
           Summary: [OOP] Type-bound procedures rejected as actual
                    argument to dummy procedure
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org

The following code compiles with, e.g., Cray's ftn but fails with gfortran 5
with:

call co_reduce(a,x%tbp)
                      1
Error: Expected argument list at (1)


module m
  type t
    procedure(f), pointer, nopass :: ppc
  contains
    procedure, nopass :: tbp => f
  end type t
contains
  pure function f(a,b)
    real :: a,b
    value :: a
    intent(in) :: b
    f = 0
  end function f
end module m

use m
!intrinsic co_reduce
integer :: a
type(t) :: x
!call co_reduce(a,x%ppc)
call co_reduce(a,x%tbp)
end


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

end of thread, other threads:[~2015-01-04 10:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-16  5:07 [Bug fortran/63552] New: [OOP] Type-bound procedures rejected as actual argument to dummy procedure burnus at gcc dot gnu.org
2014-10-16 10:10 ` [Bug fortran/63552] " dominiq at lps dot ens.fr
2014-12-29 13:21 ` janus at gcc dot gnu.org
2014-12-29 14:02 ` janus at gcc dot gnu.org
2015-01-02 21:26 ` janus at gcc dot gnu.org
2015-01-03  0:03 ` janus at gcc dot gnu.org
2015-01-03 22:06 ` burnus at gcc dot gnu.org
2015-01-03 23:09 ` ian_harvey at bigpond dot com
2015-01-04 10:47 ` janus at gcc dot gnu.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).