summaryrefslogtreecommitdiffstats
path: root/gcc/fortran/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/match.c')
-rw-r--r--gcc/fortran/match.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c
index 77594cbf567..e6a7689b018 100644
--- a/gcc/fortran/match.c
+++ b/gcc/fortran/match.c
@@ -1798,6 +1798,9 @@ gfc_match_allocate (void)
goto cleanup;
}
+ if (tail->expr->ts.type == BT_DERIVED)
+ tail->expr->ts.derived = gfc_use_derived (tail->expr->ts.derived);
+
if (gfc_match_char (',') != MATCH_YES)
break;
OpenPOWER on IntegriCloud