]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix namelist with use association and renaming
authorSteve Kargl <kargl@gcc.gnu.org>
Wed, 7 Jan 2026 23:14:23 +0000 (15:14 -0800)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Thu, 8 Jan 2026 01:16:02 +0000 (17:16 -0800)
commitfd8686b35bee8d260a3557082abedac33a98d48a
tree7427e19c4b25db43817f14f0af78d4ec3ea1c02b
parentc5ae6aaa9e7ff78d81c5be106e2c12100d3425bc
Fortran: Fix namelist with use association and renaming

PR fortran/123012

gcc/fortran/ChangeLog:

* trans-io.cc (transfer_namelist_element): Adjust the
conditions determining when to use the local name or
the var name to build the object name.

gcc/testsuite/ChangeLog:

* gfortran.dg/namelist_99.f90: New test.
gcc/fortran/trans-io.cc
gcc/testsuite/gfortran.dg/namelist_99.f90 [new file with mode: 0644]