]> gcc.gnu.org Git - 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>
Fri, 1 Jul 2022 17:59:29 +0000 (19:59 +0200)
commit7296a7c9aa35a9731a73e33c29f6bbc488a0c837
tree68d65c4f4ad6b980d51efc8152c012881c06fb78
parent614d9e76b71df6c5ad42f2b9c2a8156e8b3ebd35
Fortran: handle explicit-shape specs with constant bounds [PR105954]

gcc/fortran/ChangeLog:

PR fortran/105954
* decl.c (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.

(cherry picked from commit a312407bd715647f7c11b67e0a52effc94d0f15d)
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr105954.f90 [new file with mode: 0644]
This page took 0.063485 seconds and 5 git commands to generate.