diff options
Diffstat (limited to 'gcc/fortran/parse.c')
-rw-r--r-- | gcc/fortran/parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index f98a213..737f3d6 100644 --- a/gcc/fortran/parse.c +++ b/gcc/fortran/parse.c @@ -2228,11 +2228,11 @@ endType: sym->attr.coarray_comp = 1; } - if (c->ts.type == BT_DERIVED && c->ts.u.derived->attr.coarray_comp) + if (c->ts.type == BT_DERIVED && c->ts.u.derived->attr.coarray_comp + && !c->attr.pointer) { coarray = true; - if (!pointer && !allocatable) - sym->attr.coarray_comp = 1; + sym->attr.coarray_comp = 1; } /* Looking for lock_type components. */ |