This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 ? Mikael 2008-12-09 Mikael Morin <mikael.morin@tele2.fr> PR fortran/37469 * expr.c (find_array_element): Simplify array bounds. Assert that both bounds are constant expressions.
Attachment:
pr37469_02.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |