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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 131 |
Nodes: | 8 (1 / 7) |
Uptime: | 35:45:52 |
Calls: | 2,699 |
Calls today: | 2 |
Files: | 9,260 |
Messages: | 2,268,176 |