From e6242bc79e68c0eccb23912870dc3b30790b7bfc Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Sat, 14 May 2011 12:34:44 +0200 Subject: re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays]) 2011-05-14 Tobias Burnus PR fortran/18918 * interface.c (compare_parameter): Skip diagnostic if actual argument is not an array; rank mismatch is diagnosted later. 2011-05-14 Tobias Burnus PR fortran/18918 * gfortran.de/coarray_20.f90: New. From-SVN: r173755 --- gcc/fortran/interface.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/fortran/interface.c') diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c index 1f75724..732a0c59d 100644 --- a/gcc/fortran/interface.c +++ b/gcc/fortran/interface.c @@ -1618,6 +1618,7 @@ compare_parameter (gfc_symbol *formal, gfc_expr *actual, /* F2008, 12.5.2.8. */ if (formal->attr.dimension && (formal->attr.contiguous || formal->as->type != AS_ASSUMED_SHAPE) + && gfc_expr_attr (actual).dimension && !gfc_is_simply_contiguous (actual, true)) { if (where) -- cgit v1.1