diff options
author | Tobias Burnus <burnus@net-b.de> | 2011-05-14 12:34:44 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2011-05-14 12:34:44 +0200 |
commit | e6242bc79e68c0eccb23912870dc3b30790b7bfc (patch) | |
tree | 0e5648b3f312aa5598b00b22dcc01130729add57 /gcc/fortran/interface.c | |
parent | 4e4c4f4161242fa556ef872c5be3f21ade22b6f0 (diff) | |
download | gcc-e6242bc79e68c0eccb23912870dc3b30790b7bfc.zip gcc-e6242bc79e68c0eccb23912870dc3b30790b7bfc.tar.gz gcc-e6242bc79e68c0eccb23912870dc3b30790b7bfc.tar.bz2 |
re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
2011-05-14 Tobias Burnus <burnus@net-b.de>
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 <burnus@net-b.de>
PR fortran/18918
* gfortran.de/coarray_20.f90: New.
From-SVN: r173755
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r-- | gcc/fortran/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |