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);
{
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;
}
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)
{
gfc_matching_procptr_assignment = 0;
m = gfc_match (" %v =>", &lvalue);
- if (m != MATCH_YES || !lvalue->symtree)
+ if (m != MATCH_YES)
{
m = MATCH_NO;
goto cleanup;
+++ /dev/null
-! { dg-do compile }
-! PR fortran/95502 - ICE in gfc_check_do_variable, at fortran/parse.c:4446
-
-program p
- integer, pointer :: z
- nullify (z%kind) ! { dg-error "in variable definition context" }
- z%kind => NULL() ! { dg-error "constant expression" }
-end