nncarlson / gfortran.dg

The GFortran testsuite rigged for testing other Fortran compilers
7 stars 2 forks source link

Invalid passed-object dummy argument in proc_ptr_47.f90 #4

Closed nncarlson closed 6 years ago

nncarlson commented 6 years ago

The passed-object dummy argument A cannot be ALLOCATABLE according to constraints C453 (F03), C456 (F08), C461(F15):

 6:   type AA
 7:     integer :: i
 8:     procedure(foo), pointer :: funct
 9:   end type
      [...]
22: contains
23:   function foo(A)
24:     class(AA), allocatable :: A
$ nagfor -kind=byte proc_ptr_47.f90
NAG Fortran Compiler Release 6.1(Tozai) Build 6144
Error: proc_ptr_47.f90, line 8: Passed-object dummy argument A of procedure pointer component FUNCT of type AA is ALLOCATABLE
janusw commented 6 years ago

Fixed. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84273