[Patch, fortran] PR29490 - ICE whilst building formal/actual interface
FX Coudert
fxcoudert@gmail.com
Wed Oct 25 21:59:00 GMT 2006
> In this case, trans-types.c(gfc_get_nodesc_array_type)
> declines to set GFC_TYPE_ARRAY_LBOUND or GFC_TYPE_ARRAY_UBOUND
> and gfc_set_interface_mapping_bounds. The solution is to use
> the descriptor values for both bounds. The testcase is that
> provided by the reporter.
I would just like confirmation that, if GFC_TYPE_ARRAY_LBOUND is not
set, then GFC_TYPE_ARRAY_UBOUND is garanteed not to be set either.
Perhaps an assert in the code would help?
Otherwise,
> 2006-10-19 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/29490
> * trans-expr.c (gfc_set_interface_mapping_bounds): In the case
> that GFC_TYPE_ARRAY_LBOUND is not available, use descriptor
> values for it and GFC_TYPE_ARRAY_UBOUND.
>
> 2006-10-19 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/29490
> * gfortran.dg/actual_array_interface_1.f90: New test.
OK.
More information about the Fortran
mailing list