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: | 159 |
Nodes: | 16 (0 / 16) |
Uptime: | 97:59:38 |
Calls: | 3,209 |
Files: | 10,563 |
Messages: | 3,009,574 |