[Patch, fortran] PR40646 - ICE assigning array return value from type-bound procedure
Janus Weil
janus@gcc.gnu.org
Mon Jul 13 12:05:00 GMT 2009
> Ok, here is a rather complete patch, which (mostly) fixes the PPC part
> of the PR. Note that it fixes the attached versions of comment #2 and
> #4, but still has problems with certain variations of them.
Attached is a follow-up patch, which fixes the remaining issues (see
comment #8 in the PR).
Regression-tested on x86_64-unknown-linux-gnu. Ok for trunk?
Cheers,
Janus
2009-07-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/40646
* module.c (mio_symbol): If the symbol has formal arguments,
the formal namespace will be present.
* resolve.c (resolve_actual_arglist): Correctly handle 'called'
procedure pointer components as actual arguments.
(resolve_fl_derived,resolve_symbol): Make sure the formal namespace
is present.
* trans-expr.c (gfc_conv_procedure_call): Correctly handle the formal
arguments of procedure pointer components.
2009-07-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/40646
* gfortran.dg/proc_ptr_22.f90: Extended.
* gfortran.dg/proc_ptr_comp_12.f90: Extended.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr40646_2.diff
Type: text/x-diff
Size: 4238 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090713/0a0a3f6d/attachment.bin>
More information about the Gcc-patches
mailing list