This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR43945 - [OOP] Derived type with GENERIC: resolved to the wrong specific TBP


Paul Richard Thomas wrote:
> The attached patch is explained by the ChangeLog and the comments.
> Boostrapped and regtested on RHEL5.4/i686 - OK for trunk and 4.5?
>   
OK. Thanks for the patch!

Tobias
> 2010-05-06  Paul Thomas  <pault@gcc.gnu.org>
>
> 	PR fortran/43945
> 	* resolve.c (get_declared_from_expr): Move to before
> 	resolve_typebound_generic_call.  Make new_ref and class_ref
> 	ignorable if set to NULL.
> 	(resolve_typebound_generic_call): Once we have resolved the
> 	generic call, check that the specific instance is that which
> 	is bound to the declared type.
>
> 2010-05-06  Paul Thomas  <pault@gcc.gnu.org>
>
> 	PR fortran/43945
> 	* gfortran.dg/generic_23.f03: New test.
>   


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]