ICE: insert_sym: bad hash

The following example triggers an ICE with 18.4

$ pgfortran pgi-20180505b.f90
PGF90-F-0000-Internal compiler error. insert_sym: bad hash 639 (pgi-20180505b.f90: 6)
PGF90/x86-64 Linux 18.4-0: compilation aborted


character(3), target :: a = 'foo'
contains
  function ptr()
    class(*), pointer :: ptr
    ptr => a
    select type (ptr)
    type is (character(*))
    end select
  end function
end

Hi NeilC,

I was able to reproduce this issue here and have created TPR#25695 and sent to engineering for further investigation.

Thanks!
Mat

For anyone running into this issue, be aware that it has been fixed post release 18.10