From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1747 invoked by alias); 16 Oct 2014 05:07:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1711 invoked by uid 48); 16 Oct 2014 05:07:39 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/63552] New: [OOP] Type-bound procedures rejected as actual argument to dummy procedure Date: Thu, 16 Oct 2014 05:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg01209.txt.bz2 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