aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/expr.c
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2021-06-16 22:00:52 +0200
committerHarald Anlauf <anlauf@gmx.de>2021-06-16 22:00:52 +0200
commitd117f992d81b783aa7cbff4c9fde9b96b70a93ed (patch)
treea4460d7256782b6ad7c8c078f0bca319cbfc34f7 /gcc/fortran/expr.c
parent72e3d92178b44a3722519ec68e72e307443bda70 (diff)
downloadgcc-d117f992d81b783aa7cbff4c9fde9b96b70a93ed.zip
gcc-d117f992d81b783aa7cbff4c9fde9b96b70a93ed.tar.gz
gcc-d117f992d81b783aa7cbff4c9fde9b96b70a93ed.tar.bz2
Revert "Fortran - ICE in gfc_check_do_variable, at fortran/parse.c:4446"
This reverts commit 72e3d92178b44a3722519ec68e72e307443bda70.
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r--gcc/fortran/expr.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c
index 6e663b4..956003e 100644
--- a/gcc/fortran/expr.c
+++ b/gcc/fortran/expr.c
@@ -1683,21 +1683,10 @@ find_array_section (gfc_expr *expr, gfc_ref *ref)
return false;
}
-#if 1
cons = gfc_constructor_lookup (base, limit);
gcc_assert (cons);
gfc_constructor_append_expr (&expr->value.constructor,
gfc_copy_expr (cons->expr), NULL);
-#else
- cons = gfc_constructor_lookup (base, limit);
- if (cons)
- gfc_constructor_append_expr (&expr->value.constructor,
- gfc_copy_expr (cons->expr), NULL);
- else
- {
- t = false;
- }
-#endif
}
mpz_clear (ptr);
@@ -3487,7 +3476,6 @@ gfc_specification_expr (gfc_expr *e)
{
gfc_error ("Expression at %L must be of INTEGER type, found %s",
&e->where, gfc_basic_typename (e->ts.type));
- gfc_clear_ts (&e->ts);
return false;
}
@@ -3827,9 +3815,6 @@ gfc_check_pointer_assign (gfc_expr *lvalue, gfc_expr *rvalue,
int proc_pointer;
bool same_rank;
- if (!lvalue->symtree)
- return false;
-
lhs_attr = gfc_expr_attr (lvalue);
if (lvalue->ts.type == BT_UNKNOWN && !lhs_attr.proc_pointer)
{