Commit 14ceeb32 by Steven G. Kargl Committed by Steven G. Kargl

intrinsic.c (gfc_intrinsic_func_interface): Enable errors for generic functions…

intrinsic.c (gfc_intrinsic_func_interface): Enable errors for generic functions whose simplification routine return FAILURE.

* intrinsic.c (gfc_intrinsic_func_interface): Enable errors for generic
  functions whose simplification routine return FAILURE.

From-SVN: r101160
parent 10553f10
2005-06-18 Steven G. Kargl <kargls@comcast.net>
* intrinsic.c (gfc_intrinsic_func_interface): Enable errors for generic
functions whose simplification routine return FAILURE.
2005-06-13 Geoffrey Keating <geoffk@apple.com> 2005-06-13 Geoffrey Keating <geoffk@apple.com>
* Make-lang.in (fortran.install-man): Doesn't depend on installdirs. * Make-lang.in (fortran.install-man): Doesn't depend on installdirs.
......
...@@ -3007,16 +3007,13 @@ got_specific: ...@@ -3007,16 +3007,13 @@ got_specific:
expr->value.function.isym = specific; expr->value.function.isym = specific;
gfc_intrinsic_symbol (expr->symtree->n.sym); gfc_intrinsic_symbol (expr->symtree->n.sym);
gfc_suppress_error = 0;
if (do_simplify (specific, expr) == FAILURE) if (do_simplify (specific, expr) == FAILURE)
{ return MATCH_ERROR;
gfc_suppress_error = 0;
return MATCH_ERROR;
}
/* TODO: We should probably only allow elemental functions here. */ /* TODO: We should probably only allow elemental functions here. */
flag |= (expr->ts.type != BT_INTEGER && expr->ts.type != BT_CHARACTER); flag |= (expr->ts.type != BT_INTEGER && expr->ts.type != BT_CHARACTER);
gfc_suppress_error = 0;
if (pedantic && gfc_init_expr if (pedantic && gfc_init_expr
&& flag && gfc_init_expr_extensions (specific)) && flag && gfc_init_expr_extensions (specific))
{ {
......
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