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

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> 
---


No ICE with "intent(in)" instead :


$ cat z2.f90
program p
   print *, f(2_8**32+1)
contains
   function f(n)
      integer(8), intent(in) :: n
      character(n) :: f
      f = 'a'
   end
end


$ gfortran-7-20161009 z2.f90
$ a.out
 a

Reply via email to