This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR43945 - [OOP] Derived type with GENERIC: resolved to the wrong specific TBP
- From: Tobias Burnus <burnus at net-b dot de>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches <gcc-patches at gcc dot gnu dot org>, Daniel Kraft <domob1812 at gmail dot com>
- Date: Sat, 08 May 2010 00:00:02 +0200
- Subject: Re: [Patch, fortran] PR43945 - [OOP] Derived type with GENERIC: resolved to the wrong specific TBP
- References: <u2l339c37f21005060905m12a43c8di2e2b68e1ebb64485@mail.gmail.com>
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.
>