https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126058

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Thomas Koenig <[email protected]>:

https://gcc.gnu.org/g:11264d32461164d5da0660a4a057ab31f8a3e159

commit r17-2505-g11264d32461164d5da0660a4a057ab31f8a3e159
Author: Thomas Koenig <[email protected]>
Date:   Sat Jul 18 10:41:23 2026 +0200

    Show details of attr->allocated with -fdump-fortran-original.

    This simple and obvious patch adds output for the var_allocated enum,
    to make the status of where the gfortran thinks a potential allocation
    came from more clear.

    Instead of (example from warn_unused_but_set_variable_4.f90)

    attributes: (VARIABLE  ALLOCATABLE DIMENSION REFERENCED
VALUE-SET(INTENT-OUT) ALLOCATED)

    this now displays

    attributes: (VARIABLE  ALLOCATABLE DIMENSION REFERENCED
VALUE-SET(INTENT-OUT) ALLOCATED(ARG))

    No user impact (unless the user is exceptionally curious) and no test
    case.

    gcc/fortran/ChangeLog:

            PR fortran/126058
            * dump-parse-tree.cc (show_attr): Show details of
            attr->allocated.

Reply via email to