aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/check.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2015-03-02 19:56:51 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2015-03-02 19:56:51 +0100
commitbc81b5ce9b1b1433c29390c1179b14a0048fd615 (patch)
tree430ad9093a901be4e63fd18520d2810c008df5fa /gcc/fortran/check.c
parentaf5513e96b5539e4b3368050ba9064bb41b391f2 (diff)
downloadgcc-bc81b5ce9b1b1433c29390c1179b14a0048fd615.zip
gcc-bc81b5ce9b1b1433c29390c1179b14a0048fd615.tar.gz
gcc-bc81b5ce9b1b1433c29390c1179b14a0048fd615.tar.bz2
check.c (gfc_check_atomic): Properly check for coarrayness and for being coindexed.
2015-03-02 Tobias Burnus <burnus@net-b.de> * check.c (gfc_check_atomic): Properly check for coarrayness and for being coindexed. 2015-03-02 Tobias Burnus <burnus@net-b.de> * gfortran.dg/coarray_atomic_6.f90: New. From-SVN: r221122
Diffstat (limited to 'gcc/fortran/check.c')
-rw-r--r--gcc/fortran/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c
index 3be4fb1..cdb5ff1 100644
--- a/gcc/fortran/check.c
+++ b/gcc/fortran/check.c
@@ -1022,7 +1022,7 @@ gfc_check_atomic (gfc_expr *atom, int atom_no, gfc_expr *value, int val_no,
return false;
}
- if (!gfc_expr_attr (atom).codimension)
+ if (!gfc_is_coarray (atom) && !gfc_is_coindexed (atom))
{
gfc_error ("ATOM argument at %L of the %s intrinsic function shall be a "
"coarray or coindexed", &atom->where, gfc_current_intrinsic);