[Bug fortran/108131] [10/11/12/13 Regression] Incorrect bound calculation when bound intrinsic used in size expression
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 28 16:12:25 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108131
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:f97f032f28b3f875e50000061d6b9d7ecf35897a
commit r12-9017-gf97f032f28b3f875e50000061d6b9d7ecf35897a
Author: Harald Anlauf <anlauf@gmx.de>
Date: Sat Dec 17 22:04:32 2022 +0100
Fortran: incorrect array bounds when bound intrinsic used in decl
[PR108131]
gcc/fortran/ChangeLog:
PR fortran/108131
* array.cc (match_array_element_spec): Avoid too early
simplification
of matched array element specs that can lead to a misinterpretation
when used as array bounds in array declarations.
gcc/testsuite/ChangeLog:
PR fortran/108131
* gfortran.dg/pr103505.f90: Adjust expected patterns.
* gfortran.dg/pr108131.f90: New test.
(cherry picked from commit 6a95f0e0a06d78d94138d4c3dd64d41591197281)
More information about the Gcc-bugs
mailing list