re PR fortran/83515 (ICE: Invalid expression in gfc_element_size)
authorHarald Anlauf <anlauf@gmx.de>
Sun, 31 Mar 2019 18:33:51 +0000 (18:33 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Sun, 31 Mar 2019 18:33:51 +0000 (18:33 +0000)
commit93755deb5c26a82106aa63280c492f9bda0679c2
tree2d7246fffdaddeb474c6292a315b3fe8df2a25ed
parent60e8cda6740265f9af398d8518725b5b98e6e024
re PR fortran/83515 (ICE: Invalid expression in gfc_element_size)

2019-03-31  Harald Anlauf  <anlauf@gmx.de>

PR fortran/83515
PR fortran/85797
* trans-types.c (gfc_typenode_for_spec): Handle conversion for
procedure pointers.
* target-memory.c (gfc_element_size): Handle size determination
for procedure pointers.

PR fortran/83515
PR fortran/85797
* gfortran.dg/pr85797.f90: New test.

From-SVN: r270045
gcc/fortran/ChangeLog
gcc/fortran/target-memory.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr85797.f90 [new file with mode: 0644]