2018-06-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/85641
* frontend-passes.c (is_fe_temp): Add prototype.
(realloc_string_callback): Early return for frontend-generated
temporary.
2018-06-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/85641
* gfortran.dg/realloc_on_assign_30.f90: New test.
From-SVN: r261248
+2018-06-06 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/85641
+ * frontend-passes.c (is_fe_temp): Add prototype.
+ (realloc_string_callback): Early return for frontend-generated
+ temporary.
+
2018-06-05 Cesar Philippidis <cesar@codesourcery.com>
PR fortran/85701
static int matmul_temp_args (gfc_code **, int *,void *data);
static int index_interchange (gfc_code **, int*, void *);
+static bool is_fe_temp (gfc_expr *e);
+
#ifdef CHECKING_P
static void check_locus (gfc_namespace *);
#endif
|| !expr1->ts.deferred)
return 0;
+ if (is_fe_temp (expr1))
+ return 0;
+
expr2 = gfc_discard_nops (co->expr2);
if (expr2->expr_type == EXPR_VARIABLE)
+2018-06-06 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/85641
+ * gfortran.dg/realloc_on_assign_30.f90: New test.
+
2018-06-06 Carl Love <cel@us.ibm.com>
* gcc.target/powerpc/builtins-3.c: Move tests requiring -mvsx
--- /dev/null
+! { dg-do compile }
+! PR 85641 - this used to ICE due do infinite recursion.
+! Test case by Antony Lewis.
+program tester
+character(LEN=:), allocatable :: fields
+integer j
+character(LEN=4), parameter :: CMB_CL_Fields = 'TEBP'
+
+fields = ''
+j=1
+fields = fields // CMB_CL_Fields(j:j)
+
+end program tester