public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/22010] New: Namelists defined in modules not handled properly
@ 2005-06-10 19:53 gcc-bugzilla at chatsubo dot lagged dot za dot net
2005-06-10 21:10 ` [Bug fortran/22010] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: gcc-bugzilla at chatsubo dot lagged dot za dot net @ 2005-06-10 19:53 UTC (permalink / raw)
To: gcc-bugs
The following code (where input.dat is a file that does not
contain a debugging namelist entry) goes wrong:
MODULE debug
LOGICAL debug_area
NAMELIST/debugging/debug_area
END MODULE debug
PROGRAM ding
USE debug
IMPLICIT NONE
INTEGER :: ios
OPEN(unit=10, status='unknown', file='input.dat')
READ(unit=10, nml=debugging, iostat=ios)
PRINT*, 'nml=debugging',ios
END PROGRAM ding
$ gfortran -o namelistding namelistding.f90 && ./namelistding
nml=debugging 2
The following works properly:
PROGRAM ding
IMPLICIT NONE
LOGICAL debug_area
NAMELIST/debugging/debug_area
INTEGER :: ios
OPEN(unit=10, status='unknown', file='input.dat')
READ(unit=10, nml=debugging, iostat=ios)
PRINT*, 'nml=debugging',ios
END PROGRAM ding
$ gfortran -o namelistding namelistding.f90 && ./namelistding
nml=debugging -1
More interesting, the following also works:
MODULE debug
LOGICAL debug_area
NAMELIST/debugging/debug_area
END MODULE debug
PROGRAM ding
USE debug
IMPLICIT NONE
NAMELIST/debugging/debug_area
INTEGER :: ios
OPEN(unit=10, status='unknown', file='input.dat')
READ(unit=10, nml=debugging, iostat=ios)
PRINT*, 'nml=debugging',ios
END PROGRAM ding
$ gfortran -o namelistding namelistding.f90 && ./namelistding
nml=debugging -1
--
Summary: Namelists defined in modules not handled properly
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc-bugzilla at chatsubo dot lagged dot za dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22010] Namelists defined in modules not handled properly
2005-06-10 19:53 [Bug fortran/22010] New: Namelists defined in modules not handled properly gcc-bugzilla at chatsubo dot lagged dot za dot net
@ 2005-06-10 21:10 ` pinskia at gcc dot gnu dot org
2005-06-12 14:33 ` tobi at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-10 21:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-10 21:10 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-10 21:10:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22010] Namelists defined in modules not handled properly
2005-06-10 19:53 [Bug fortran/22010] New: Namelists defined in modules not handled properly gcc-bugzilla at chatsubo dot lagged dot za dot net
2005-06-10 21:10 ` [Bug fortran/22010] " pinskia at gcc dot gnu dot org
@ 2005-06-12 14:33 ` tobi at gcc dot gnu dot org
2005-06-21 21:05 ` pault at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-06-12 14:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2005-06-12 14:33 -------
Patch posted.
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/fortra
| |n/2005-06/msg00241.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22010] Namelists defined in modules not handled properly
2005-06-10 19:53 [Bug fortran/22010] New: Namelists defined in modules not handled properly gcc-bugzilla at chatsubo dot lagged dot za dot net
2005-06-10 21:10 ` [Bug fortran/22010] " pinskia at gcc dot gnu dot org
2005-06-12 14:33 ` tobi at gcc dot gnu dot org
@ 2005-06-21 21:05 ` pault at gcc dot gnu dot org
2005-08-05 5:32 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-06-21 21:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pault at gcc dot gnu dot org 2005-06-21 21:05 -------
Fixed in mainline.
Waiting to commit to 4.0
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22010] Namelists defined in modules not handled properly
2005-06-10 19:53 [Bug fortran/22010] New: Namelists defined in modules not handled properly gcc-bugzilla at chatsubo dot lagged dot za dot net
` (2 preceding siblings ...)
2005-06-21 21:05 ` pault at gcc dot gnu dot org
@ 2005-08-05 5:32 ` cvs-commit at gcc dot gnu dot org
2005-08-05 5:36 ` pault at gcc dot gnu dot org
2005-08-05 15:50 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-05 5:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-05 05:32 -------
Subject: Bug 22010
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: pault@gcc.gnu.org 2005-08-05 05:31:44
Modified files:
gcc/fortran : module.c ChangeLog
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: namelist_use.f90
namelist_use_only.f90
Log message:
2005-08-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
Paul Thomas <pault@gcc.gnu.org>
PR fortran/22010
Port from g95.
* module.c (mio_namelist): New function. Correct to set
namelist_tail and to give error on renaming namelist by use
association.
(mio_symbol): Call mio_namelist.
2005-08-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/22010
* gfortran.dg/namelist_use.f90: New.
* gfortran.dg/namelist_use_only.f90: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/module.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.31&r2=1.31.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.98&r2=1.335.2.99
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_use.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.14.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_use_only.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.14.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.317&r2=1.5084.2.318
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22010] Namelists defined in modules not handled properly
2005-06-10 19:53 [Bug fortran/22010] New: Namelists defined in modules not handled properly gcc-bugzilla at chatsubo dot lagged dot za dot net
` (3 preceding siblings ...)
2005-08-05 5:32 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-05 5:36 ` pault at gcc dot gnu dot org
2005-08-05 15:50 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-08-05 5:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pault at gcc dot gnu dot org 2005-08-05 05:36 -------
I think that 4.0 opened and closed more than once since I promised to complete this!
Fixed on mainline and 4.02
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22010] Namelists defined in modules not handled properly
2005-06-10 19:53 [Bug fortran/22010] New: Namelists defined in modules not handled properly gcc-bugzilla at chatsubo dot lagged dot za dot net
` (4 preceding siblings ...)
2005-08-05 5:36 ` pault at gcc dot gnu dot org
@ 2005-08-05 15:50 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-05 15:50 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22010
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-08-05 15:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-10 19:53 [Bug fortran/22010] New: Namelists defined in modules not handled properly gcc-bugzilla at chatsubo dot lagged dot za dot net
2005-06-10 21:10 ` [Bug fortran/22010] " pinskia at gcc dot gnu dot org
2005-06-12 14:33 ` tobi at gcc dot gnu dot org
2005-06-21 21:05 ` pault at gcc dot gnu dot org
2005-08-05 5:32 ` cvs-commit at gcc dot gnu dot org
2005-08-05 5:36 ` pault at gcc dot gnu dot org
2005-08-05 15:50 ` 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).