[Bug fortran/106999] [11/12/13 Regression] ICE tree check: expected record_type or union_type or qual_union_type, have function_type in gfc_class_data_get, at fortran/trans-expr.cc:233

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Wed Sep 21 17:32:54 GMT 2022


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

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

FYI, a directly matching variant compiles :

$ cat z2.f90
program p
   type t
      procedure(g), pointer :: f
   end type
   class(t), allocatable :: z
   call s(z%f)
contains
   subroutine g(x)
      class(t) :: x
   end
   subroutine s(x)
      procedure(g) :: x
   end
end


More information about the Gcc-bugs mailing list