public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/98686] New: Namelist group objects shall be defined before appearing in namelist for -std=f2018
@ 2021-01-14 17:10 anlauf at gcc dot gnu.org
  2021-01-14 17:11 ` [Bug fortran/98686] " anlauf at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-01-14 17:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98686

            Bug ID: 98686
           Summary: Namelist group objects shall be defined before
                    appearing in namelist for -std=f2018
           Product: gcc
           Version: fortran-dev
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anlauf at gcc dot gnu.org
  Target Milestone: ---

The following code is silently accepted even with -std=f95 ... -std=2018:

  implicit none
  namelist /NML/ x, m, q
  real    :: x, m
  integer :: q
  x = 1.0
  m = 2.0
  q = 3
  write(*, nml=NML)
end

It is properly rejected by NAG, and leads to fun with ifort, depending on
the -stand setting.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-02-22  4:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 17:10 [Bug fortran/98686] New: Namelist group objects shall be defined before appearing in namelist for -std=f2018 anlauf at gcc dot gnu.org
2021-01-14 17:11 ` [Bug fortran/98686] " anlauf at gcc dot gnu.org
2021-01-14 18:05 ` anlauf at gcc dot gnu.org
2021-01-19  9:53 ` dominiq at lps dot ens.fr
2021-02-14  1:53 ` jvdelisle at gcc dot gnu.org
2021-02-14  2:43 ` jvdelisle at gcc dot gnu.org
2021-02-14 19:27 ` jvdelisle at gcc dot gnu.org
2021-02-15 20:17 ` jvdelisle at gcc dot gnu.org
2021-02-19 20:48 ` cvs-commit at gcc dot gnu.org
2021-02-22  4:27 ` jvdelisle at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).