[Bug fortran/105184] ICE in gfc_array_init_size, at fortran/trans-array.cc:5841
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Apr 10 18:28:14 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105184
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:54c5e064cc3dc3c9b3dff12b6d48dc3efd482b07
commit r12-8073-g54c5e064cc3dc3c9b3dff12b6d48dc3efd482b07
Author: Harald Anlauf <anlauf@gmx.de>
Date: Wed Apr 6 22:24:21 2022 +0200
Fortran: fix checking of coshape specification in ALLOCATE statement
gcc/fortran/ChangeLog:
PR fortran/105184
* array.cc (match_subscript): Reject assumed size coarray
specification with missing lower bound.
* resolve.cc (resolve_allocate_expr): Fix logic for checking
allocate-coshape-spec in ALLOCATE statement.
gcc/testsuite/ChangeLog:
PR fortran/105184
* gfortran.dg/coarray_44.f90: Adjust expected output.
* gfortran.dg/coarray_allocate_11.f90: Likewise.
* gfortran.dg/coarray_allocate_12.f90: New test.
More information about the Gcc-bugs
mailing list