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
This commit is contained in:
parent
a0324f7b5a
commit
f0fc6ae664
@ -1,3 +1,9 @@
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user