re PR fortran/59198 (ICE on cyclically dependent polymorphic types)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 17 Mar 2015 05:20:08 +0000 (05:20 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 17 Mar 2015 05:20:08 +0000 (05:20 +0000)
commitebd63afa68237d05f4f5dfeb847d341a76239b68
tree2c81bd7fbe477a4652381330a41551d646354630
parent448c7e25258690336857663669ae85fba4e229d6
re PR fortran/59198 (ICE on cyclically dependent polymorphic types)

2014-03-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59198
* trans-types.c (gfc_get_derived_type): If an abstract derived
type with procedure pointer components has no other type of
component, return the backend_decl. Otherwise build the
components if any of the non-procedure pointer components have
no backend_decl.

2014-03-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59198
* gfortran.dg/proc_ptr_comp_44.f90 : New test
* gfortran.dg/proc_ptr_comp_45.f90 : New test

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