public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/24794] New: problem with namelist input of character array
@ 2005-11-11 13:39 chjacob at web dot de
2005-11-11 16:32 ` [Bug libfortran/24794] " jvdelisle at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: chjacob at web dot de @ 2005-11-11 13:39 UTC (permalink / raw)
To: gcc-bugs
Here is a test program and an input file demostrating the
problem:
christoph@note-jacob ~/namelist $ cat namelist.f90
program bla
implicit none
integer, parameter :: maxop=15, iunit=7
character*8 namea(maxop), nameb(maxop)
integer i
NAMELIST/CCSOPR/ NAMEA,NAMEB
OPEN (iunit, file="input.nml", status='OLD')
READ (iunit, CCSOPR)
CLOSE (iunit)
do i = 1, maxop
write (*,*) "NAMEA (",i,") = ", NAMEA(i)
end do
do i = 1, maxop
write (*,*) "NAMEB (",i,") = ", NAMEB(i)
end do
end program bla
christoph@note-jacob ~/namelist $ cat input.nml
&CCSOPR
NAMEA='SPI01H','SPI02O','SPI03H','SPI04O','SPI05H','SPI06H',
'SPI07O','SPI08H','SPI09H',
NAMEB='SPI01H','SPI03H','SPI05H','SPI06H','SPI08H','SPI09H',
&END
christoph@note-jacob ~/namelist $ gfortran namelist.f90
christoph@note-jacob ~/namelist $ ./a.out
NAMEA ( 1 ) = SPI01H
NAMEA ( 2 ) = SPI02O
NAMEA ( 3 ) = SPI03H
NAMEA ( 4 ) = SPI04O
NAMEA ( 5 ) = SPI05H
NAMEA ( 6 ) = SPI06H
NAMEA ( 7 ) = SPI07O
NAMEA ( 8 ) = SPI08H
NAMEA ( 9 ) = SPI09H
NAMEA ( 10 ) = NAMEB='S
NAMEA ( 11 ) = SPI03H
NAMEA ( 12 ) = SPI05H
NAMEA ( 13 ) = SPI06H
NAMEA ( 14 ) = SPI08H
NAMEA ( 15 ) = SPI09H
NAMEB ( 1 ) = 8\uffff\uffffii
NAMEB ( 2 ) = \uffff\uffff\uffff
NAMEB ( 3 ) = 8\uffff\uffff
NAMEB ( 4 ) = \uffff\uffff\uffff
NAMEB ( 5 ) = n\uffff\u0677\uffffJ\u0677
NAMEB ( 6 ) = \uffff\uffff\u0637
NAMEB ( 7 ) = `
NAMEB ( 8 ) = wP\uffff
NAMEB ( 9 ) = \uffff/\uffff\uffff
NAMEB ( 10 ) = \uffffx^\uffff\uffff
NAMEB ( 11 ) = \uffff6\uffff\uffff\uffff\uffff
NAMEB ( 12 ) = \uffff\uffff8
NAMEB ( 13 ) = \uffff\uffff
NAMEB ( 14 ) = Ht\uffff\uffff
NAMEB ( 15 ) = $\uffff
--
Summary: problem with namelist input of character array
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: chjacob at web dot de
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
@ 2005-11-11 16:32 ` jvdelisle at gcc dot gnu dot org
2005-11-19 20:43 ` jvdelisle at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-11-11 16:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2005-11-11 16:32 -------
Confirmed in 4.1
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-11-11 16:32:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
2005-11-11 16:32 ` [Bug libfortran/24794] " jvdelisle at gcc dot gnu dot org
@ 2005-11-19 20:43 ` jvdelisle at gcc dot gnu dot org
2005-11-20 2:00 ` jvdelisle at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-11-19 20:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2005-11-19 20:43 -------
I have the patch for this working and will be submitting to the list for
approval soon.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
2005-11-11 16:32 ` [Bug libfortran/24794] " jvdelisle at gcc dot gnu dot org
2005-11-19 20:43 ` jvdelisle at gcc dot gnu dot org
@ 2005-11-20 2:00 ` jvdelisle at gcc dot gnu dot org
2005-11-23 2:02 ` jvdelisle at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-11-20 2:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2005-11-20 02:00 -------
Patch submitted for review and approval. Christoph, thankyou for submitting
this PR and the example case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
` (2 preceding siblings ...)
2005-11-20 2:00 ` jvdelisle at gcc dot gnu dot org
@ 2005-11-23 2:02 ` jvdelisle at gcc dot gnu dot org
2005-11-23 2:14 ` jvdelisle at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-11-23 2:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2005-11-23 02:02 -------
Subject: Bug 24794
Author: jvdelisle
Date: Wed Nov 23 02:02:31 2005
New Revision: 107394
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107394
Log:
2005-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/24794
* io/list_read.c (read_character): Add auto completion on short
namelist reads.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/list_read.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
` (3 preceding siblings ...)
2005-11-23 2:02 ` jvdelisle at gcc dot gnu dot org
@ 2005-11-23 2:14 ` jvdelisle at gcc dot gnu dot org
2005-11-23 2:28 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-11-23 2:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2005-11-23 02:14 -------
Subject: Bug 24794
Author: jvdelisle
Date: Wed Nov 23 02:14:26 2005
New Revision: 107396
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107396
Log:
2005-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/24794
* gfortran.dg/namelist_12.f: Fix quotes.
* gfortran.dg/namelist_13.f90: Fix quotes.
* gfortran.dg/namelist_14.f90: Fix quotes.
* gfortran.dg/namelist_15.f90: Fix quotes.
* gfortran.dg/namelist_use.f90: Fix quotes.
* gfortran.dg/namelist_use_only.f90: Fix quotes.
* gfortran.dg/namelist_21.f90: New test.
* gfortran.dg/namelist_22.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/namelist_21.f90
trunk/gcc/testsuite/gfortran.dg/namelist_22.f90
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/namelist_12.f
trunk/gcc/testsuite/gfortran.dg/namelist_13.f90
trunk/gcc/testsuite/gfortran.dg/namelist_14.f90
trunk/gcc/testsuite/gfortran.dg/namelist_15.f90
trunk/gcc/testsuite/gfortran.dg/namelist_use.f90
trunk/gcc/testsuite/gfortran.dg/namelist_use_only.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
` (4 preceding siblings ...)
2005-11-23 2:14 ` jvdelisle at gcc dot gnu dot org
@ 2005-11-23 2:28 ` jvdelisle at gcc dot gnu dot org
2005-11-23 2:30 ` jvdelisle at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-11-23 2:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2005-11-23 02:28 -------
Subject: Bug 24794
Author: jvdelisle
Date: Wed Nov 23 02:28:44 2005
New Revision: 107397
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107397
Log:
2005-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/24794
* gfortran.dg/namelist_12.f: Fix quotes.
* gfortran.dg/namelist_13.f90: Fix quotes.
* gfortran.dg/namelist_14.f90: Fix quotes.
* gfortran.dg/namelist_15.f90: Fix quotes.
* gfortran.dg/namelist_use.f90: Fix quotes.
* gfortran.dg/namelist_use_only.f90: Fix quotes.
* gfortran.dg/namelist_21.f90: New test.
* gfortran.dg/namelist_22.f90: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/namelist_21.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/namelist_22.f90
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/namelist_12.f
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/namelist_13.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/namelist_14.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/namelist_15.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/namelist_use.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/namelist_use_only.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
` (5 preceding siblings ...)
2005-11-23 2:28 ` jvdelisle at gcc dot gnu dot org
@ 2005-11-23 2:30 ` jvdelisle at gcc dot gnu dot org
2005-11-23 20:57 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-11-23 2:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jvdelisle at gcc dot gnu dot org 2005-11-23 02:30 -------
Subject: Bug 24794
Author: jvdelisle
Date: Wed Nov 23 02:30:23 2005
New Revision: 107399
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107399
Log:
2005-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/24794
* io/list_read.c (read_character): Add auto completion on short
namelist reads.
Modified:
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=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
` (6 preceding siblings ...)
2005-11-23 2:30 ` jvdelisle at gcc dot gnu dot org
@ 2005-11-23 20:57 ` jvdelisle at gcc dot gnu dot org
2005-11-24 0:49 ` jvdelisle at gcc dot gnu dot org
2005-12-12 20:08 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-11-23 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jvdelisle at gcc dot gnu dot org 2005-11-23 20:57 -------
Fixed in 4.1 and 4.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
` (7 preceding siblings ...)
2005-11-23 20:57 ` jvdelisle at gcc dot gnu dot org
@ 2005-11-24 0:49 ` jvdelisle at gcc dot gnu dot org
2005-12-12 20:08 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-11-24 0:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jvdelisle at gcc dot gnu dot org 2005-11-24 00:49 -------
Fixed in 4.1 and 4.2, if someone has a dieing need for this in 4.0 let me know
and I will commit the fix there as well.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libfortran/24794] problem with namelist input of character array
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
` (8 preceding siblings ...)
2005-11-24 0:49 ` jvdelisle at gcc dot gnu dot org
@ 2005-12-12 20:08 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-12 20:08 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24794
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-12-12 20:08 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-11 13:39 [Bug libfortran/24794] New: problem with namelist input of character array chjacob at web dot de
2005-11-11 16:32 ` [Bug libfortran/24794] " jvdelisle at gcc dot gnu dot org
2005-11-19 20:43 ` jvdelisle at gcc dot gnu dot org
2005-11-20 2:00 ` jvdelisle at gcc dot gnu dot org
2005-11-23 2:02 ` jvdelisle at gcc dot gnu dot org
2005-11-23 2:14 ` jvdelisle at gcc dot gnu dot org
2005-11-23 2:28 ` jvdelisle at gcc dot gnu dot org
2005-11-23 2:30 ` jvdelisle at gcc dot gnu dot org
2005-11-23 20:57 ` jvdelisle at gcc dot gnu dot org
2005-11-24 0:49 ` jvdelisle at gcc dot gnu dot org
2005-12-12 20:08 ` pinskia 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).