public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/30918]  New: Failure to skip commented out NAMELIST
@ 2007-02-21 21:46 anlauf at gmx dot de
  2007-02-21 21:47 ` [Bug libfortran/30918] " anlauf at gmx dot de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: anlauf at gmx dot de @ 2007-02-21 21:46 UTC (permalink / raw)
  To: gcc-bugs

Hi,

when reading a namelist from a file, gfortran does not
skip a commented out entry as in

!&REPORT use      = 'ignore'   /        ! Commented out, ignore this one!
!
 &REPORT type     = 'SYNOP' 
         use      = 'active'
         max_proc = 20
 /

The attached program demonstrates that gfortran reads
the first entry although it should be skipped.


-- 
           Summary: Failure to skip commented out NAMELIST
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

* [Bug libfortran/30918] Failure to skip commented out NAMELIST
  2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
@ 2007-02-21 21:47 ` anlauf at gmx dot de
  2007-02-21 21:48 ` anlauf at gmx dot de
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: anlauf at gmx dot de @ 2007-02-21 21:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from anlauf at gmx dot de  2007-02-21 21:47 -------
Created an attachment (id=13087)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13087&action=view)
Read loop for namelist file with multiple entries


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

* [Bug libfortran/30918] Failure to skip commented out NAMELIST
  2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
  2007-02-21 21:47 ` [Bug libfortran/30918] " anlauf at gmx dot de
@ 2007-02-21 21:48 ` anlauf at gmx dot de
  2007-02-22  1:23 ` jvdelisle at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: anlauf at gmx dot de @ 2007-02-21 21:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from anlauf at gmx dot de  2007-02-21 21:47 -------
Created an attachment (id=13088)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13088&action=view)
The namelist file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

* [Bug libfortran/30918] Failure to skip commented out NAMELIST
  2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
  2007-02-21 21:47 ` [Bug libfortran/30918] " anlauf at gmx dot de
  2007-02-21 21:48 ` anlauf at gmx dot de
@ 2007-02-22  1:23 ` jvdelisle at gcc dot gnu dot org
  2007-02-25  0:28 ` jvdelisle at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-22  1:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2007-02-22 01:23 -------
Curious. I will exzmine this on the weekend.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

* [Bug libfortran/30918] Failure to skip commented out NAMELIST
  2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
                   ` (2 preceding siblings ...)
  2007-02-22  1:23 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-25  0:28 ` jvdelisle at gcc dot gnu dot org
  2007-02-25  2:27 ` jvdelisle at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-25  0:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jvdelisle at gcc dot gnu dot org  2007-02-25 00:28 -------
Found it.  Patch on the way.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jvdelisle at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-25 00:28:37
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

* [Bug libfortran/30918] Failure to skip commented out NAMELIST
  2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
                   ` (3 preceding siblings ...)
  2007-02-25  0:28 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-25  2:27 ` jvdelisle at gcc dot gnu dot org
  2007-02-25  2:30 ` jvdelisle at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-25  2:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jvdelisle at gcc dot gnu dot org  2007-02-25 02:27 -------
Subject: Bug 30918

Author: jvdelisle
Date: Sun Feb 25 02:27:17 2007
New Revision: 122307

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122307
Log:
2007-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/30918
        * io/listread.c (namelist_read): Eat comment line.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/list_read.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

* [Bug libfortran/30918] Failure to skip commented out NAMELIST
  2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
                   ` (4 preceding siblings ...)
  2007-02-25  2:27 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-25  2:30 ` jvdelisle at gcc dot gnu dot org
  2007-02-25  3:39 ` jvdelisle at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-25  2:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jvdelisle at gcc dot gnu dot org  2007-02-25 02:30 -------
Subject: Bug 30918

Author: jvdelisle
Date: Sun Feb 25 02:30:14 2007
New Revision: 122308

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122308
Log:
2007-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/30918
        * gfortran.dg/namelist_26.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/namelist_26.f90
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

* [Bug libfortran/30918] Failure to skip commented out NAMELIST
  2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
                   ` (5 preceding siblings ...)
  2007-02-25  2:30 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-25  3:39 ` jvdelisle at gcc dot gnu dot org
  2007-02-25  3:52 ` jvdelisle at gcc dot gnu dot org
  2007-02-25  4:00 ` jvdelisle at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-25  3:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jvdelisle at gcc dot gnu dot org  2007-02-25 03:39 -------
Subject: Bug 30918

Author: jvdelisle
Date: Sun Feb 25 03:39:19 2007
New Revision: 122309

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122309
Log:
2007-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/30918
        * io/listread.c (namelist_read): Eat comment line.

2007-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/30918
        * gfortran.dg/namelist_26.f90: New test.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/namelist_26.f90
Modified:
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_2-branch/libgfortran/ChangeLog
    branches/gcc-4_2-branch/libgfortran/io/list_read.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

* [Bug libfortran/30918] Failure to skip commented out NAMELIST
  2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
                   ` (6 preceding siblings ...)
  2007-02-25  3:39 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-25  3:52 ` jvdelisle at gcc dot gnu dot org
  2007-02-25  4:00 ` jvdelisle at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-25  3:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jvdelisle at gcc dot gnu dot org  2007-02-25 03:52 -------
Subject: Bug 30918

Author: jvdelisle
Date: Sun Feb 25 03:52:11 2007
New Revision: 122310

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122310
Log:
2007-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/30918
        * io/listread.c (namelist_read): Eat comment line.

2007-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/30918
        * gfortran.dg/namelist_26.f90: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/namelist_26.f90
Modified:
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/libgfortran/ChangeLog
    branches/gcc-4_1-branch/libgfortran/io/list_read.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

* [Bug libfortran/30918] Failure to skip commented out NAMELIST
  2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
                   ` (7 preceding siblings ...)
  2007-02-25  3:52 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-25  4:00 ` jvdelisle at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-25  4:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jvdelisle at gcc dot gnu dot org  2007-02-25 04:00 -------
Fixed on 4.3, 4.2, and 4.1
Thanaks Herald for report.  Please let me know if you have any other troubles.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918


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

end of thread, other threads:[~2007-02-25  4:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21 21:46 [Bug libfortran/30918] New: Failure to skip commented out NAMELIST anlauf at gmx dot de
2007-02-21 21:47 ` [Bug libfortran/30918] " anlauf at gmx dot de
2007-02-21 21:48 ` anlauf at gmx dot de
2007-02-22  1:23 ` jvdelisle at gcc dot gnu dot org
2007-02-25  0:28 ` jvdelisle at gcc dot gnu dot org
2007-02-25  2:27 ` jvdelisle at gcc dot gnu dot org
2007-02-25  2:30 ` jvdelisle at gcc dot gnu dot org
2007-02-25  3:39 ` jvdelisle at gcc dot gnu dot org
2007-02-25  3:52 ` jvdelisle at gcc dot gnu dot org
2007-02-25  4:00 ` jvdelisle at gcc dot gnu dot 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).