https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123321
--- Comment #10 from van.snyder at sbcglobal dot net <van.snyder at sbcglobal dot net> --- > Van Snyder wrote: > > On Sat, 2025-12-27 at 22:06 +0000, kargl at gcc dot gnu.org wrote: > > > >     C8107 (R871) The namelist-group-name shall not be a > > > > name > > > >     accessed by use association. > > > > > > > > and it appears that it is not handled correctly. > > > > > > > > gfortran.dg/namelist_use_only.f90 is using a namelist-group- > > > > name > > > > from the > > > > module. > > > > > > Need to think about this a bit more. I may be misinterpreting > > > C8107. > > > > > > In the bug I posted, the namelist-group-name is local to the main > > program, not accessed by use association. It's a namelist-group- > > object, > > which 8.9 "Namelist Statement" p5 (F18, and F25 draft) explicitly > > says > > can be accessed by use association, that apparently can't be > > renamed > > and then the local name used in a namelist statement.
