check.c (gfc_check_minloc_maxloc, [...]): Don't call dim_range_check on not-present optional dim argument.
* check.c (gfc_check_minloc_maxloc, check_reduction): Don't call dim_range_check on not-present optional dim argument. From-SVN: r111108
This commit is contained in:
parent
cc26ad97f0
commit
b98e315984
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-02-15 Tobias Schl<68>üter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
* check.c (gfc_check_minloc_maxloc, check_reduction): Don't call
|
||||
dim_range_check on not-present optional dim argument.
|
||||
|
||||
2006-02-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR libgomp/25938
|
||||
|
|
|
@ -1576,7 +1576,7 @@ gfc_check_minloc_maxloc (gfc_actual_arglist * ap)
|
|||
if (dim_check (d, 1, 1) == FAILURE)
|
||||
return FAILURE;
|
||||
|
||||
if (dim_rank_check (d, a, 0) == FAILURE)
|
||||
if (d && dim_rank_check (d, a, 0) == FAILURE)
|
||||
return FAILURE;
|
||||
|
||||
if (m != NULL && type_check (m, 2, BT_LOGICAL) == FAILURE)
|
||||
|
@ -1633,7 +1633,7 @@ check_reduction (gfc_actual_arglist * ap)
|
|||
if (dim_check (d, 1, 1) == FAILURE)
|
||||
return FAILURE;
|
||||
|
||||
if (dim_rank_check (d, a, 0) == FAILURE)
|
||||
if (d && dim_rank_check (d, a, 0) == FAILURE)
|
||||
return FAILURE;
|
||||
|
||||
if (m != NULL && type_check (m, 2, BT_LOGICAL) == FAILURE)
|
||||
|
|
Loading…
Add table
Reference in a new issue