diff options
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index e8b6548..fb1886e 100644 --- a/gcc/fortran/expr.c +++ b/gcc/fortran/expr.c @@ -2109,7 +2109,8 @@ check_elemental (gfc_expr *e) || !e->value.function.isym->elemental) return MATCH_NO; - if ((e->ts.type != BT_INTEGER || e->ts.type != BT_CHARACTER) + if (e->ts.type != BT_INTEGER + && e->ts.type != BT_CHARACTER && gfc_notify_std (GFC_STD_F2003, "Extension: Evaluation of " "nonstandard initialization expression at %L", &e->where) == FAILURE) |