http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45586
--- Comment #48 from Michael Matz <matz at gcc dot gnu.org> 2011-02-18 19:52:19 UTC --- Author: matz Date: Fri Feb 18 19:52:16 2011 New Revision: 170284 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170284 Log: PR fortran/45586 * gfortran.h (struct gfc_component): Add norestrict_decl member. * trans.h (struct lang_type): Add nonrestricted_type member. * trans-expr.c (gfc_conv_component_ref): Search fields with correct parent type. * trans-types.c (mirror_fields, gfc_nonrestricted_type): New. (gfc_sym_type): Use it. testsuite/ PR fortran/45586 * gfortran.dg/lto/pr45586_0.f90: New test. * gfortran.dg/typebound_proc_20.f90: Ditto. * gfortran.dg/typebound_proc_21.f90: Ditto. Added: trunk/gcc/testsuite/gfortran.dg/lto/pr45586_0.f90 trunk/gcc/testsuite/gfortran.dg/typebound_proc_20.f90 trunk/gcc/testsuite/gfortran.dg/typebound_proc_21.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/gfortran.h trunk/gcc/fortran/trans-expr.c trunk/gcc/fortran/trans-types.c trunk/gcc/fortran/trans.h