re PR fortran/80392 ([OOP] ICE with allocatable polymorphic function result in a...
authorJanus Weil <janus@gcc.gnu.org>
Fri, 21 Apr 2017 20:47:12 +0000 (22:47 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Fri, 21 Apr 2017 20:47:12 +0000 (22:47 +0200)
commitfc23d35a75c0d2fe93f62434708b74e98779625d
tree27c7dd2a8af35690db4996949e9f410e31d1498d
parent176e79b51e9e778a768e9e33bd4daa47600300fd
re PR fortran/80392 ([OOP] ICE with allocatable polymorphic function result in a procedure pointer component)

2017-04-21  Janus Weil  <janus@gcc.gnu.org>

PR fortran/80392
* trans-types.c (gfc_get_derived_type): Prevent an infinite loop when
building a derived type that includes a procedure pointer component
with a polymorphic result.

2017-04-21  Janus Weil  <janus@gcc.gnu.org>

PR fortran/80392
* gfortran.dg/proc_ptr_comp_49.f90: New test case.

From-SVN: r247069
gcc/fortran/ChangeLog
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_ptr_comp_49.f90 [new file with mode: 0644]