What does F2023:C8107 mean?

Liste des GroupesRevenir à cl fortran 
Sujet : What does F2023:C8107 mean?
De : sgk (at) *nospam* REMOVEtroutmask.apl.washington.edu (Steven G. Kargl)
Groupes : comp.lang.fortran
Date : 29. Aug 2024, 18:59:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vaqct8$2fvv$1@dont-email.me>
User-Agent : Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2)
F2023:C8107 states

   The namelist-group-name shall not be a name accessed by use association.

Are following pieces of code standard conforming?

! Code 1
module mod_nml1
   implicit none
   logical :: ldiag
   namelist /nam_nml1/ldiag
end module mod_nml1

program ice_nml
   use mod_nml1
   implicit none
   integer :: ilu
   ldiag = .false.
   write(*,nml=nam_nml1)  ! <-- Use assoc. of namelist-group-name
end program ice_nml

! Code 2
module mod_nml1
   implicit none
   logical :: ldiag
   namelist /nam_nml1/ldiag
end module mod_nml1

program ice_nml
   use mod_nml1
   implicit none
   integer :: ilu, j
   namelist /nam_nml1/j   ! <-- Use assoc of namelist-group-name
   ldiag = .false.
   j = 42
   write(*,nml=nam_nml1)  ! <-- Use assoc of namelist-group-name
end program ice_nml

Clarification of the interpretation of C8107 would be appreciated?

--
steve

Date Sujet#  Auteur
29 Aug 24 * What does F2023:C8107 mean?2Steven G. Kargl
29 Aug 24 `- Re: What does F2023:C8107 mean?1Steven G. Kargl

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal