diff options
author | janus <janus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-14 17:47:22 +0000 |
---|---|---|
committer | janus <janus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-14 17:47:22 +0000 |
commit | 73ee5dca233a3f6c5de125f188620efb202576e7 (patch) | |
tree | fbfb790d7d79f144ac1f5b84041533f3bf7565d9 /gcc/fortran | |
parent | 0cea58f2e5cf0774e56207ea760b052903229547 (diff) | |
download | gcc-73ee5dca233a3f6c5de125f188620efb202576e7.tar.gz |
2013-12-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/59502
* primary.c (gfc_match_varspec): Check for 'class_ok'.
2013-12-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/59502
* gfortran.dg/class_57.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205990 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/primary.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 197b890c47c..9de18607db3 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,10 @@ 2013-12-14 Janus Weil <janus@gcc.gnu.org> + PR fortran/59502 + * primary.c (gfc_match_varspec): Check for 'class_ok'. + +2013-12-14 Janus Weil <janus@gcc.gnu.org> + PR fortran/59450 * module.c (mio_expr): Handle type-bound function expressions. diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c index c9a26b09be4..089ed429310 100644 --- a/gcc/fortran/primary.c +++ b/gcc/fortran/primary.c @@ -2039,9 +2039,8 @@ gfc_match_varspec (gfc_expr *primary, int equiv_flag, bool sub_flag, if (m != MATCH_YES) return m; } - else if (component->ts.type == BT_CLASS - && CLASS_DATA (component)->as != NULL - && !component->attr.proc_pointer) + else if (component->ts.type == BT_CLASS && component->attr.class_ok + && CLASS_DATA (component)->as && !component->attr.proc_pointer) { tail = extend_ref (primary, tail); tail->type = REF_ARRAY; |