[Patch, Fortran, OOP] PR 45933:[4.6 regression] ICE in gfc_add_component_ref, at fortran/class.c:77
Mark Rashid
mmrashid@ucdavis.edu
Thu Oct 7 16:56:00 GMT 2010
Janus (and Mikael),
Thank you for jumping on this so quickly.
Mark
On Thu, 2010-10-07 at 18:26 +0200, Janus Weil wrote:
> Hi all,
>
> this patch fixes the code which resolves type-bound operator calls: It
> was only working if the passed-object is a simple variable, but failed
> on more complicated expressions like derived-type components. The
> reason for this being a regression is probably that we modified a lot
> of the polymorphic TBP handling in 4.6.
>
> The patch was regtested on x86_64-unknown-linux-gnu. I think it's
> pretty obvious. Ok for trunk?
>
> Cheers,
> Janus
>
>
> 2010-10-07 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/45933
> * resolve.c (resolve_typebound_function): Use correct declared type
> for type-bound operators.
>
>
> 2010-10-07 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/45933
> * gfortran.dg/typebound_operator_5.f03: New.
More information about the Fortran
mailing list