aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2013-11-23 10:14:11 +0100
committerJanus Weil <janus@gcc.gnu.org>2013-11-23 10:14:11 +0100
commit627b82f2143faa7f229347c463fda5968661d14f (patch)
tree0ea54065bf2fff2f2c2cf709150b6afe1bf2152e /gcc/fortran/interface.c
parent5ed182049ba26a74641616c57829fa900aecd4e2 (diff)
downloadgcc-627b82f2143faa7f229347c463fda5968661d14f.zip
gcc-627b82f2143faa7f229347c463fda5968661d14f.tar.gz
gcc-627b82f2143faa7f229347c463fda5968661d14f.tar.bz2
re PR fortran/59228 (ICE-on-invalid with assumed type and ASYNCHRONOUS)
2013-11-23 Janus Weil <janus@gcc.gnu.org> PR fortran/59228 * interface.c (compare_parameter): Check for array spec. 2013-11-23 Janus Weil <janus@gcc.gnu.org> PR fortran/59228 * gfortran.dg/asynchronous_4.f90: New. From-SVN: r205304
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r--gcc/fortran/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index 0504c90..5a0aa26 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -2092,7 +2092,7 @@ compare_parameter (gfc_symbol *formal, gfc_expr *actual,
&& (actual->symtree->n.sym->attr.asynchronous
|| actual->symtree->n.sym->attr.volatile_)
&& (formal->attr.asynchronous || formal->attr.volatile_)
- && actual->rank && !gfc_is_simply_contiguous (actual, true)
+ && actual->rank && formal->as && !gfc_is_simply_contiguous (actual, true)
&& ((formal->as->type != AS_ASSUMED_SHAPE
&& formal->as->type != AS_ASSUMED_RANK && !formal->attr.pointer)
|| formal->attr.contiguous))