[Bug fortran/115315] [PDT] valgrind error in gfc_simplify_expr
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 26 18:50:31 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115315
--- 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:9780a52dffaf5e476bbce80dac84514cd6863483
commit r16-8297-g9780a52dffaf5e476bbce80dac84514cd6863483
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Thu Mar 26 18:50:13 2026 +0000
Fortran: Minor PDT cleanup and fix in gfc_simplify_exp [PR115315]
2026-03-26 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/115315
* decl.cc (insert_parameter_exprs): Make strcmp condition more
concise.
(gfc_get_pdt_instance): Use gf_replace_expr where possible and
use return value of gfc_simplify_expr. Correct error in which
params->expr was being simplified instead of c2->initializer.
* expr.cc (gfc_simplify_expr): If the substring 'start' value
is less than zero, it is clearly out of range and so return
false.
gcc/testsuite/
PR fortran/115315
* gfortran.dg/pdt_90.f03: New test.
More information about the Gcc-bugs
mailing list