[Bug fortran/70072] ICE in gfc_find_array_ref(): No ref found

gerhard.steinmetz.fortran@t-online.de gcc-bugzilla@gcc.gnu.org
Thu Mar 3 20:51:00 GMT 2016


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

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Whereas with "type" instead of "class" :


$ cat z2.f90
program p
   type t
      integer :: n
   end type
   type(t), parameter :: z(2,3) = t(1)
   print *, size(z, dim=1)
   print *, lbound(z, dim=1)
   print *, ubound(z, dim=1)
end


$ gfortran-6 z2.f90
$ a.out
           2
           1
           2


More information about the Gcc-bugs mailing list