diff options
Diffstat (limited to 'gcc/fortran/primary.c')
-rw-r--r-- | gcc/fortran/primary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c index dfea043..4865b75 100644 --- a/gcc/fortran/primary.c +++ b/gcc/fortran/primary.c @@ -1898,7 +1898,7 @@ gfc_variable_attr (gfc_expr *expr, gfc_typespec *ts) break; case REF_COMPONENT: - gfc_get_component_attr (&attr, ref->u.c.component); + attr = ref->u.c.component->attr; if (ts != NULL) { *ts = ref->u.c.component->ts; @@ -1909,8 +1909,8 @@ gfc_variable_attr (gfc_expr *expr, gfc_typespec *ts) ts->cl = NULL; } - pointer = ref->u.c.component->pointer; - allocatable = ref->u.c.component->allocatable; + pointer = ref->u.c.component->attr.pointer; + allocatable = ref->u.c.component->attr.allocatable; if (pointer) target = 1; |