check.c (gfc_check_kill_sub): Add checks for non-scalar arguments.

* check.c (gfc_check_kill_sub): Add checks for non-scalar
arguments.

From-SVN: r122569
This commit is contained in:
Brooks Moses
2007-03-05 20:04:23 +00:00
committed by Brooks Moses
parent dc89902b42
commit aceec9f74c
2 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
* check.c (gfc_check_kill_sub): Add checks for non-scalar
arguments.
2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
* lang.opt (-fmodule-private): Remove option.

View File

@@ -1327,9 +1327,15 @@ gfc_check_kill_sub (gfc_expr * pid, gfc_expr * sig, gfc_expr * status)
if (type_check (pid, 0, BT_INTEGER) == FAILURE)
return FAILURE;
if (scalar_check (pid, 0) == FAILURE)
return FAILURE;
if (type_check (sig, 1, BT_INTEGER) == FAILURE)
return FAILURE;
if (scalar_check (sig, 1) == FAILURE)
return FAILURE;
if (status == NULL)
return SUCCESS;