diff options
author | Steven G. Kargl <kargl@gcc.gnu.org> | 2019-10-22 18:18:59 +0000 |
---|---|---|
committer | Steven G. Kargl <kargl@gcc.gnu.org> | 2019-10-22 18:18:59 +0000 |
commit | ebb3afe2b98a9a4b1c8cc5fd2745a1037c06d827 (patch) | |
tree | 4e4e62cda2e1b3490017269ea71f050964e445a5 /gcc/fortran/decl.c | |
parent | 1ee4c3da8668d913419209d484a7cb5a03e7b1fb (diff) | |
download | gcc-ebb3afe2b98a9a4b1c8cc5fd2745a1037c06d827.zip gcc-ebb3afe2b98a9a4b1c8cc5fd2745a1037c06d827.tar.gz gcc-ebb3afe2b98a9a4b1c8cc5fd2745a1037c06d827.tar.bz2 |
re PR fortran/92174 (runtime error: index 15 out of bounds for type 'gfc_expr *[15])
2019-10-22 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/92174
* decl.c (attr_decl1): Move check for F2018:C822 from here ...
* array.c (gfc_set_array_spec): ... to here.
From-SVN: r277297
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 59e0eac..25a3967 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -8524,15 +8524,6 @@ attr_decl1 (void) goto cleanup; } - /* Check F2018:C822. */ - if (sym->attr.dimension && sym->attr.codimension - && sym->as && sym->as->rank + sym->as->corank > 15) - { - gfc_error ("rank + corank of %qs exceeds 15 at %C", sym->name); - m = MATCH_ERROR; - return m; - } - if (sym->attr.cray_pointee && sym->as != NULL) { /* Fix the array spec. */ |