]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix ICE in compare_bound_int [PR108527]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 24 Jan 2023 21:36:25 +0000 (22:36 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 5 Feb 2023 19:02:22 +0000 (20:02 +0100)
commit511928102dc9fa3f9c377e01f9bfb605b4995a61
tree004efa79142d6ad8b4336b181c73c562f9f6af1a
parent516a10f8c4c127a9d39e354a40817e8d8226ab07
Fortran: fix ICE in compare_bound_int [PR108527]

gcc/fortran/ChangeLog:

PR fortran/108527
* resolve.cc (compare_bound_int): Expression to compare must be of
type INTEGER.
(compare_bound_mpz_t): Likewise.
(check_dimension): Fix comment on checks applied to array section
and clean up associated logic.

gcc/testsuite/ChangeLog:

PR fortran/108527
* gfortran.dg/pr108527.f90: New test.

Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
(cherry picked from commit 22afa4947584c701633a79fd8750c9ceeaa96711)
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr108527.f90 [new file with mode: 0644]