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 <[email protected]>:

https://gcc.gnu.org/g:9780a52dffaf5e476bbce80dac84514cd6863483

commit r16-8297-g9780a52dffaf5e476bbce80dac84514cd6863483
Author: Paul Thomas <[email protected]>
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  <[email protected]>

    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.

Reply via email to