https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83705
--- Comment #8 from Janne Blomqvist <jb at gcc dot gnu.org> --- Author: jb Date: Thu Feb 1 07:41:03 2018 New Revision: 257281 URL: https://gcc.gnu.org/viewcvs?rev=257281&root=gcc&view=rev Log: PR 83705 Repeat with large values This patch fixes the regression by increasing the limit where we fall back to runtime to 2**28 elements, which is the same limit where previous releases failed. The are still bugs in the runtime evaluation, so in many cases longer characters will still fail, so print a warning message. Regtested on x86_64-pc-linux-gnu. gcc/fortran/ChangeLog: 2018-02-01 Janne Blomqvist <j...@gcc.gnu.org> PR fortran/83705 * simplify.c (gfc_simplify_repeat): Increase limit for deferring to runtime, print a warning message. gcc/testsuite/ChangeLog: 2018-02-01 Janne Blomqvist <j...@gcc.gnu.org> PR fortran/83705 * gfortran.dg/repeat_7.f90: Catch warning message. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/simplify.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/repeat_7.f90