aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/primary.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2011-12-19 16:30:23 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2011-12-19 16:30:23 +0100
commitcd99c23ca41f9fb6792e39f0e91a950cf1e531aa (patch)
tree2d37421d992c8c2c8df7d5e8606294c36915d130 /gcc/fortran/primary.c
parent6a9ceb1703fcf307cdeb4abab80e535d98857122 (diff)
downloadgcc-cd99c23ca41f9fb6792e39f0e91a950cf1e531aa.zip
gcc-cd99c23ca41f9fb6792e39f0e91a950cf1e531aa.tar.gz
gcc-cd99c23ca41f9fb6792e39f0e91a950cf1e531aa.tar.bz2
re PR fortran/51605 (internal compiler error gfc_trans_block_construct, at fortran/trans-stmt.c:984)
2011-12-19 Tobias Burnus <burnus@net-b.de> PR fortran/51605 * match.c (gfc_match_select_type): Handle scalar polymophic coarrays. (select_type_set_tmp, ): Ditto; avoid segfault if !class_ok. * primary.c (gfc_match_rvalue): Avoid segfault if !class_ok. * resolve.c (resolve_select_type): Ditto. (resolve_assoc_var): Fix setting the TARGET attribute for polymorphic selectors which are pointers. 2011-12-19 Tobias Burnus <burnus@net-b.de> PR fortran/51605 * gfortran.dg/select_type_25.f90: New. From-SVN: r182484
Diffstat (limited to 'gcc/fortran/primary.c')
-rw-r--r--gcc/fortran/primary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c
index afc4684..f79ed22 100644
--- a/gcc/fortran/primary.c
+++ b/gcc/fortran/primary.c
@@ -2914,7 +2914,7 @@ gfc_match_rvalue (gfc_expr **result)
break;
}
- if (sym->ts.type == BT_CLASS
+ if (sym->ts.type == BT_CLASS && sym->attr.class_ok
&& (CLASS_DATA (sym)->attr.dimension
|| CLASS_DATA (sym)->attr.codimension))
{