diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-17 05:54:42 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-17 05:54:42 +0000 |
commit | 532691cbf32df968dc34e6f6c4f5be27940f5cb4 (patch) | |
tree | 7c27b8443697acbc5006880c4e3b22f8ddef9623 /gcc/fortran/array.c | |
parent | ae71e4294809d2e42f7f512b87221cd29c62f079 (diff) | |
download | gcc-532691cbf32df968dc34e6f6c4f5be27940f5cb4.tar.gz |
2008-07-17 Tobias Burnus <burnus@net-b.de>
PR fortran/36825
PR fortran/36824
* array.c (gfc_match_array_spec): Fix array-rank check.
* resolve.c (resolve_fl_derived): Fix constentness check
for the array dimensions.
2008-07-17 Tobias Burnus <burnus@net-b.de>
PR fortran/36825
PR fortran/36824
* gfortran.dg/rank_2.f90: Add additional array-rank test.
* gfortran.dg/array_4.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/array.c')
-rw-r--r-- | gcc/fortran/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c index c6bb5e857b9..1f41701ca96 100644 --- a/gcc/fortran/array.c +++ b/gcc/fortran/array.c @@ -437,7 +437,7 @@ gfc_match_array_spec (gfc_array_spec **asp) goto cleanup; } - if (as->rank > 7 + if (as->rank >= 7 && gfc_notify_std (GFC_STD_F2008, "Fortran 2008: Array " "specification at %C with more than 7 dimensions") == FAILURE) |