]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: handle explicit-shape specs with constant bounds [PR105954]
authorHarald Anlauf <anlauf@gmx.de>
Mon, 20 Jun 2022 18:59:55 +0000 (20:59 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 26 Jun 2022 20:01:49 +0000 (22:01 +0200)
commita312407bd715647f7c11b67e0a52effc94d0f15d
tree959a183bd9b7a040e8410e88798bdacbacbd7b72
parentff01849dccd4355ac6491c04eff8b2e39ecee70e
Fortran: handle explicit-shape specs with constant bounds [PR105954]

gcc/fortran/ChangeLog:

PR fortran/105954
* decl.cc (variable_decl): Adjust upper bounds for explicit-shape
specs with constant bound expressions to ensure non-negative
extents.

gcc/testsuite/ChangeLog:

PR fortran/105954
* gfortran.dg/pr105954.f90: New test.
gcc/fortran/decl.cc
gcc/testsuite/gfortran.dg/pr105954.f90 [new file with mode: 0644]