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

            Bug ID: 125095
           Summary: namelist read with comments does not read data
                    correctly
           Product: gcc
           Version: 15.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andy.nelson at lanl dot gov
  Target Milestone: ---

Created attachment 64323
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64323&action=edit
tarball with readme/code/input/output/everything

The code snippet in this bug report/tar file demonstrates a bug
and standards violation in the gfortran namelist read 
process.

Specifically, the namelist read cannot handle the presence 
of comments incorporated into the third namelist in 
the 'nmltest' file. It reads in the namelist in which the
comment appears incorrectly and, thereafter, apparently reads
in all future content incorrectly too.

Reply via email to