[Bug fortran/119273] [14/15/16 Regression] subclass can not correctly access to superclass in associate statement
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 25 09:28:34 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119273
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:74732d7434f0714d1f1cb89740595bd5cbbe5f39
commit r16-8274-g74732d7434f0714d1f1cb89740595bd5cbbe5f39
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Wed Mar 25 09:28:15 2026 +0000
Fortran: Invalid error in bounds check of elemental dim [PR119273]
2026-03-25 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/119273
* trans-array.cc (expr_contains_impure_fcn): New function.
(gfc_expr_contains_impure_fcn): New function calling above fcn.
(array_bound_check_elemental): Add indexse pre-block to se pre.
Warn if the index expression contains a function not declared
to be pure.
gcc/testsuite/
PR fortran/119273
* gfortran.dg/pr119273.f90: New test.
More information about the Gcc-bugs
mailing list