[Patch, fortran] PR 37469 invalid GMP usage on gfortran.dg/parameter_array_init_3.f90

Mikael Morin mikael.morin@tele2.fr
Tue Dec 9 18:12:00 GMT 2008

Mikael Morin wrote:
> Hi,
> this patch solves a problem where find_array_element in expr.c was
> making some operations with GMP on non-constant expressions.
> The patch adds calls to gfc_reduce_init_expr to simplify the array
> bounds before the operations. There is no testcase
> (parameter_array_init_3.f90 is already on trunk), but the added
> gcc_assert should prevent regressions in the future.
> no regression on x86_64-unknown-linux-gnu.
> Ok for trunk ?

Self reviewing:
it's better to cleanup on failure.
patch updated
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr37469_03.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081209/c1efbc21/attachment.ksh>

More information about the Gcc-patches mailing list