PR fortran/93364 - ICE in gfc_set_array_spec, at fortran/array.c:879
authorHarald Anlauf <anlauf@gmx.de>
Mon, 20 Apr 2020 12:20:19 +0000 (14:20 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 20 Apr 2020 12:20:19 +0000 (14:20 +0200)
commitaeb430aadc3c91af50095be924365981d85f8b8a
tree13752307651507dcf8f23ee6bda0f5aae86b49e2
parent9b4d38df3f190311a4a5b5abb49ed97b1f60d46c
PR fortran/93364 - ICE in gfc_set_array_spec, at fortran/array.c:879

Add missing check in gfc_set_array_spec for sum of rank and corank to not
exceed GFC_MAX_DIMENSIONS.

2020-04-20  Harald Anlauf  <anlauf@gmx.de>

PR fortran/93364
* array.c (gfc_set_array_spec): Check for sum of rank and corank
not exceeding GFC_MAX_DIMENSIONS.

2020-04-20  Harald Anlauf  <anlauf@gmx.de>

PR fortran/93364
* gfortran.dg/pr93364.f90: New test.
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr93364.f90 [new file with mode: 0644]