]> gcc.gnu.org Git - gcc.git/commit
re PR fortran/40882 ([F03] infinite recursion in gfc_get_derived_type with PPC return...
authorJanus Weil <janus@gcc.gnu.org>
Tue, 28 Jul 2009 11:40:42 +0000 (13:40 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Tue, 28 Jul 2009 11:40:42 +0000 (13:40 +0200)
commitc4984ab2518d2b2e971d741709111087f26ecb90
treea64d75059b47169b8c14a640ceefd56afcf23667
parentfe8b685c3ebc67ab603092526fceb328eb4e6b67
re PR fortran/40882 ([F03] infinite recursion in gfc_get_derived_type with PPC returning derived type)

2009-07-28  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40882
* trans-types.c (gfc_get_ppc_type): For derived types, directly use the
backend_decl, instead of calling gfc_typenode_for_spec, to avoid
infinte loop.
(gfc_get_derived_type): Correctly handle PPCs returning derived types,
avoiding infinite recursion.

2009-07-28  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40882
* gfortran.dg/proc_ptr_comp_13.f90: New.

From-SVN: r150154
gcc/fortran/ChangeLog
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_ptr_comp_13.f90 [new file with mode: 0644]
This page took 0.058251 seconds and 5 git commands to generate.