]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix ICE in get_expr_storage_size [PR108421]
authorHarald Anlauf <anlauf@gmx.de>
Mon, 16 Jan 2023 20:30:56 +0000 (21:30 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 5 Feb 2023 18:52:10 +0000 (19:52 +0100)
commit068fce9743ec9f3181c189cb8d03a982ca30eb7e
treeaadd4affdec24db55138126cf90df8cc0bc9e7fa
parentb14dcf0c99fab065e11ec87984475580b649edeb
Fortran: fix ICE in get_expr_storage_size [PR108421]

gcc/fortran/ChangeLog:

PR fortran/108421
* interface.c (get_expr_storage_size): Check that we actually have
an integer value before trying to extract it with mpz_get_si.

gcc/testsuite/ChangeLog:

PR fortran/108421
* gfortran.dg/pr108421.f90: New test.

(cherry picked from commit a75760374ee54768e5fd6a27080698bfbbd041ab)
gcc/fortran/interface.c
gcc/testsuite/gfortran.dg/pr108421.f90 [new file with mode: 0644]