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 OOP] PR 57966: Using a TBP to specify the shape of a dummy argument


2013/7/25 Tobias Burnus <burnus@net-b.de>:
> Janus Weil wrote:
>>
>> here is a small patch for a rejects-valid OOP problem, where a
>> type-bound call was resolved before the base type and its bindings.
>> I'm adding a call to resolve_fl_derived, in order to make sure that
>> the base type is resolved beforehand.
>>
>> Regtested on x86_64-unknown-linux-gnu. Ok for trunk?
>
>
> Looks fine to me. (If I tracked the PR correctly, it only solves the
> original problem but not yet the one of comment 5, does it?)

No, this one should actually fix both. I can also add the variant from
comment 5 to the test case, if you prefer.

Cheers,
Janus


>> 2013-07-25  Janus Weil  <janus@gcc.gnu.org>
>>
>>      PR fortran/57966
>>      * resolve.c (resolve_typebound_function): Make sure the declared
>> type,
>>      including it's type-bound procedures, is resolved before resolving
>> the
>>      actual type-bound call.
>>
>> 2013-07-25  Janus Weil  <janus@gcc.gnu.org>
>>
>>      PR fortran/57966
>>      * gfortran.dg/typebound_call_25.f90: New.


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