Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Should USE renaming affect NAMELIST?

70 views
Skip to first unread message

pmk

unread,
Jun 4, 2022, 12:37:01 PM6/4/22
to
module m
integer :: name_in_module = 123
end module

use m, name_in_program => name_in_module
namelist /nl/ name_in_program
write(*,nl)
end


I have 3 compilers that emit NAME_IN_MODULE and four that emit NAME_IN_PROGRAM. I think that the latter is correct due to "Each object designator shall begin with a name from the namelist-group-object-list (8.9) ..." in 13.11.2.

steve kargl

unread,
Jun 4, 2022, 2:33:01 PM6/4/22
to
I agree with your analysis. I also created a gfortran PR and a patch.

https://gcc.gnu.org/pipermail/gcc-bugs/2022-June/789381.html

--
steve
0 new messages