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] |
Hi all, this patch fixes the non-polymorphic usage of generic TBPs with overridden specifics. In this case the generic TBP call was always resolved to the base-class procedure and not the overridden one. The first two hunks contain the actual fix, the last three are an unrelated cleanup of unnecessary code. Regtested on x86_64-unknown-linux-gnu. Ok for trunk? Btw, thanks to Salvatore for the test case, and in general for his thorough testing of our OOP implementation. Cheers, Janus 2010-07-15 Janus Weil <janus@gcc.gnu.org> PR fortran/44936 * resolve.c (resolve_typebound_generic_call): Resolve generic non-polymorphic type-bound procedure calls to the correct specific procedure. (resolve_typebound_subroutine): Remove superfluous code. 2010-07-15 Janus Weil <janus@gcc.gnu.org> PR fortran/44936 * gfortran.dg/typebound_generic_9.f03: New.
Attachment:
pr44936.diff
Description: Binary data
Attachment:
typebound_generic_9.f03
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |