Commit f0fc6ae6 by Francois-Xavier Coudert Committed by François-Xavier Coudert

re PR fortran/31781 (fortran regressions on trunk if you --disable-checking)

	PR fortran/31781
	* simplify.c (gfc_simplify_repeat): Don't put function call with
	side effect in a gcc_assert().

From-SVN: r124412
parent a0324f7b
2007-05-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/31781
* simplify.c (gfc_simplify_repeat): Don't put function call with
side effect in a gcc_assert().
2007-05-04 Tobias Burnus <burnus@net-b.de>
PR fortran/25071
......
......@@ -2919,7 +2919,10 @@ gfc_simplify_repeat (gfc_expr *e, gfc_expr *n)
return NULL;
if (mpz_sgn (e->ts.cl->length->value.integer) != 0)
gcc_assert (gfc_extract_int (n, &ncop) == NULL);
{
const char *res = gfc_extract_int (n, &ncop);
gcc_assert (res == NULL);
}
else
ncop = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment