Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Morality is one thing. Ratings are everything." -- A Network 23 executive on "Max Headroom"


devel / comp.lang.fortran / Should USE renaming affect NAMELIST?

SubjectAuthor
* Should USE renaming affect NAMELIST?pmk
`- Re: Should USE renaming affect NAMELIST?steve kargl

1
Should USE renaming affect NAMELIST?

<e5fc0b5c-a325-40ed-844c-249929e023c7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2351&group=comp.lang.fortran#2351

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:27cc:b0:6a6:491e:ae23 with SMTP id i12-20020a05620a27cc00b006a6491eae23mr10537936qkp.485.1654360619266;
Sat, 04 Jun 2022 09:36:59 -0700 (PDT)
X-Received: by 2002:a25:31c2:0:b0:641:660f:230f with SMTP id
x185-20020a2531c2000000b00641660f230fmr16272567ybx.472.1654360619067; Sat, 04
Jun 2022 09:36:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sat, 4 Jun 2022 09:36:58 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=12.154.207.45; posting-account=hzJ1nwoAAACS3IxtuAkjIfQoNdylflgH
NNTP-Posting-Host: 12.154.207.45
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e5fc0b5c-a325-40ed-844c-249929e023c7n@googlegroups.com>
Subject: Should USE renaming affect NAMELIST?
From: pmklausler@gmail.com (pmk)
Injection-Date: Sat, 04 Jun 2022 16:36:59 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1369
 by: pmk - Sat, 4 Jun 2022 16:36 UTC

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.

Re: Should USE renaming affect NAMELIST?

<t7g8gp$sic$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2352&group=comp.lang.fortran#2352

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sgk@REMOVEtroutmask.apl.washington.edu (steve kargl)
Newsgroups: comp.lang.fortran
Subject: Re: Should USE renaming affect NAMELIST?
Date: Sat, 4 Jun 2022 18:32:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <t7g8gp$sic$1@dont-email.me>
References: <e5fc0b5c-a325-40ed-844c-249929e023c7n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 4 Jun 2022 18:32:57 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e23d77203e10b1c3a1e991d29cb5eb05";
logging-data="29260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PlAorxlsNJ6sF0oFMYTjR"
User-Agent: XPN/1.2.6 (Street Spirit ; FreeBSD)
Cancel-Lock: sha1:zKUAiu0eR8eK329cc3EsUmNMVgI=
 by: steve kargl - Sat, 4 Jun 2022 18:32 UTC

pmk wrote:

> 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.

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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor