Commit c7944152 by Brooks Moses Committed by Brooks Moses

re PR fortran/30371 (kill suboutine accepts (invalid) array arguments.)

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

From-SVN: r120468
parent ea8dda63
2007-01-03 Brooks Moses <brooks.moses@codesourcery.com>
PR 30371
* check.c (gfc_check_kill_sub): Add checks for non-scalar
arguments.
2007-01-04 Brooks Moses <brooks.moses@codesourcery.com> 2007-01-04 Brooks Moses <brooks.moses@codesourcery.com>
* intrinsic.texi: Minor cleanup, reflowing overlong * intrinsic.texi: Minor cleanup, reflowing overlong
......
...@@ -1327,9 +1327,15 @@ gfc_check_kill_sub (gfc_expr * pid, gfc_expr * sig, gfc_expr * status) ...@@ -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) if (type_check (pid, 0, BT_INTEGER) == FAILURE)
return FAILURE; return FAILURE;
if (scalar_check (pid, 0) == FAILURE)
return FAILURE;
if (type_check (sig, 1, BT_INTEGER) == FAILURE) if (type_check (sig, 1, BT_INTEGER) == FAILURE)
return FAILURE; return FAILURE;
if (scalar_check (sig, 1) == FAILURE)
return FAILURE;
if (status == NULL) if (status == NULL)
return SUCCESS; return SUCCESS;
......
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