[Patch, Fortran, OOP] PR 45933:[4.6 regression] ICE in gfc_add_component_ref, at fortran/class.c:77
Janus Weil
janus@gcc.gnu.org
Thu Oct 7 16:56:00 GMT 2010
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr45933.diff
Type: application/octet-stream
Size: 856 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101007/40e8614f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typebound_operator_5.f03
Type: application/octet-stream
Size: 620 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101007/40e8614f/attachment-0001.obj>
More information about the Gcc-patches
mailing list