intrinsic.c (gfc_intrinsic_func_interface): Enable errors for generic functions whose...
authorSteven G. Kargl <kargls@comcast.net>
Sat, 18 Jun 2005 17:59:31 +0000 (17:59 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 18 Jun 2005 17:59:31 +0000 (17:59 +0000)
* intrinsic.c (gfc_intrinsic_func_interface): Enable errors for generic
  functions whose simplification routine return FAILURE.

From-SVN: r101160

gcc/fortran/ChangeLog
gcc/fortran/intrinsic.c

index bcad19f20db793614c76d5d043b5b5bd74fd58d5..0b3d11755f47cca852b9a195127cdc93203f8857 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * Make-lang.in (fortran.install-man): Doesn't depend on installdirs.
index 66cf1902689b5d17e785eaf1c8bfae6532ae685d..4d5352878252ec6d82ba9a28b2fd10929f78acf5 100644 (file)
@@ -3007,16 +3007,13 @@ got_specific:
   expr->value.function.isym = specific;
   gfc_intrinsic_symbol (expr->symtree->n.sym);
 
+  gfc_suppress_error = 0;
   if (do_simplify (specific, expr) == FAILURE)
-    {
-      gfc_suppress_error = 0;
-      return MATCH_ERROR;
-    }
+    return MATCH_ERROR;
 
   /* TODO: We should probably only allow elemental functions here.  */
   flag |= (expr->ts.type != BT_INTEGER && expr->ts.type != BT_CHARACTER);
 
-  gfc_suppress_error = 0;
   if (pedantic && gfc_init_expr
       && flag && gfc_init_expr_extensions (specific))
     {