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

--- Comment #8 from G. Steinmetz <gs...@t-online.de> ---

And to make the picture complete, if you _add_ another integer  
(regarding comment 5), it compiles silently (but breaks at run time).


$ cat z2.f90
program p
   type t
      integer :: a
      integer :: b
      integer :: c
      class(*), pointer :: u(:)
   end type
   type(t) :: z
   select type (y => z%u(1))
   end select
end


$ gfortran-9-20181111 z2.f90
$
$ a.out
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
#...

Reply via email to