[J3] USE association of namelist groups?
Vipul Parekh
parekhvs at gmail.com
Sun Nov 25 19:33:42 EST 2018
On Sat, Nov 24, 2018 at 1:12 PM Steven G. Kargl via J3
<j3 at mailman.j3-fortran.org> wrote:
>
> ..
> Apparently the person who wrote gfortran's support for
> NAMELIST has interpreted the constraint in the Fortran
> 95 final committee draft (X3J3/96-007, page 66, line 8)
> the same way as I have explained. That support was
> written 13 years ago, and only today has a bug report
> surface. So, you're use of "literally, no one else"
> seems somewhat condescending.
>
> But, I have the information I need. c8102 is sufficiently
> poorly worded that someone may misintrepret its meaning
> and thus someone might write a buggy Fortran processor.
> ..
Given that gfortran compiler has *for quite some time now* worked as
expected with the following code which would otherwise have been
rejected had the GCC developer misinterpreted said constraint "to
imply that a namelist-group-name is not in the public portion of a
module",
module foo_nml
real :: x
namelist /foo/ x
end module
program main
use foo_nml
x = 42
write(*,nml=foo)
end program
it is more likely the recently reported bug in gfortran has something
to do with that developer's misunderstanding or lapse with processing
of a *renamed* namelist-group-name in a USE association context rather
than anything with the constraint (C8103 per 18-007r1) itself.
Regards,
Vipul Parekh
More information about the J3
mailing list