public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/49597] New: gfortran namelist read bug
@ 2011-06-30 19:03 david.sagan at gmail dot com
2011-06-30 19:32 ` [Bug fortran/49597] " dominiq at lps dot ens.fr
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: david.sagan at gmail dot com @ 2011-06-30 19:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49597
Summary: gfortran namelist read bug
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: david.sagan@gmail.com
Test program is:
program the_bug
implicit none
type example_struct
logical logic
end type example_struct
integer readstatus
type(example_struct) fzz(3)
namelist /parameters/ fzz
!
open (unit= 10,file='the_bug.in')
read(10, nml = parameters,iostat=readstatus)
write(*,*) "iostat = ", readstatus
end program the_bug
Input file "the_bug.in" is:
¶meters
fzz(1)%logic = .true.
fzz(2)%logic = .true.
/
bla bla bla
Running gives:
/lnx4103:~/dcs/bmad_distribution/test> gfortran --version
GNU Fortran (GCC) 4.5.1
Copyright (C) 2010 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
lnx4103:~/dcs/bmad_distribution/test> gfortran test.f90 ; ./a.out
iostat = 5010
iostat should be 0.
If you delete the "bla bla bla" line you get iostat = -1.
If you change the name of the variable from "fzz" to, say, "zz" (2 places in
the program and 2 places in the_bug.in) you get iostat as 0 as it should be.
I have not tried extensively to test this but variable names beginning with "t"
and variable names beginning with "f" show the bug and other names do not.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/49597] gfortran namelist read bug
2011-06-30 19:03 [Bug fortran/49597] New: gfortran namelist read bug david.sagan at gmail dot com
@ 2011-06-30 19:32 ` dominiq at lps dot ens.fr
2011-07-26 21:00 ` jvdelisle at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-06-30 19:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49597
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-06-30 19:31:46 UTC ---
I see 'iostat = 5010' with gcc version 4.5.0 20100404 (experimental) [trunk
revision 157958] (GCC), but not (i.e., iostat = 0) with versions 4.4.6, 4.5.2
20101122 (prerelease) [gcc-4_5-branch revision 167027], 4.5.3, 4.6.0 20100413
(experimental) [trunk revision 158252], nor with 4.7.0 (trunk).
AFAICT this has been fixed and you should try a more recent version.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/49597] gfortran namelist read bug
2011-06-30 19:03 [Bug fortran/49597] New: gfortran namelist read bug david.sagan at gmail dot com
2011-06-30 19:32 ` [Bug fortran/49597] " dominiq at lps dot ens.fr
@ 2011-07-26 21:00 ` jvdelisle at gcc dot gnu.org
2011-07-27 7:06 ` burnus at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2011-07-26 21:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49597
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot
| |gnu.org
AssignedTo|unassigned at gcc dot |jvdelisle at gcc dot
|gnu.org |gnu.org
--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-07-26 20:59:04 UTC ---
I will tke this one.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/49597] gfortran namelist read bug
2011-06-30 19:03 [Bug fortran/49597] New: gfortran namelist read bug david.sagan at gmail dot com
2011-06-30 19:32 ` [Bug fortran/49597] " dominiq at lps dot ens.fr
2011-07-26 21:00 ` jvdelisle at gcc dot gnu.org
@ 2011-07-27 7:06 ` burnus at gcc dot gnu.org
2011-07-27 13:44 ` david.sagan at gmail dot com
2011-07-27 14:18 ` burnus at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-07-27 7:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49597
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
Known to work| |4.4.6, 4.5.2, 4.6.0, 4.7.0
Known to fail| |4.1.2, 4.5.1
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-07-27 07:05:22 UTC ---
(In reply to comment #2)
> I will tke this one.
Jerry: Judging from comment 1, it is already fixed for 4.4, 4.5 and 4.6/4.7.
Thus, I think no action is required.
David: Thanks for the bugreport. Can you try a newer version of gfortran? Your
Linux distribution might offer a new release (4.5.2 seems to be sufficient) -
alternatively, you could try the ones at
http://gcc.gnu.org/wiki/GFortranBinaries
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/49597] gfortran namelist read bug
2011-06-30 19:03 [Bug fortran/49597] New: gfortran namelist read bug david.sagan at gmail dot com
` (2 preceding siblings ...)
2011-07-27 7:06 ` burnus at gcc dot gnu.org
@ 2011-07-27 13:44 ` david.sagan at gmail dot com
2011-07-27 14:18 ` burnus at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: david.sagan at gmail dot com @ 2011-07-27 13:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49597
--- Comment #4 from david.sagan at gmail dot com 2011-07-27 13:43:18 UTC ---
Yes a later version does not show the bug. Much thanks.
-- David
(In reply to comment #3)
> (In reply to comment #2)
> > I will tke this one.
>
> Jerry: Judging from comment 1, it is already fixed for 4.4, 4.5 and 4.6/4.7.
> Thus, I think no action is required.
>
> David: Thanks for the bugreport. Can you try a newer version of gfortran? Your
> Linux distribution might offer a new release (4.5.2 seems to be sufficient) -
> alternatively, you could try the ones at
> http://gcc.gnu.org/wiki/GFortranBinaries
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/49597] gfortran namelist read bug
2011-06-30 19:03 [Bug fortran/49597] New: gfortran namelist read bug david.sagan at gmail dot com
` (3 preceding siblings ...)
2011-07-27 13:44 ` david.sagan at gmail dot com
@ 2011-07-27 14:18 ` burnus at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-07-27 14:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49597
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-07-27 14:17:11 UTC ---
(In reply to comment #4)
> Yes a later version does not show the bug. Much thanks.
Thanks for the confirmation.
(I have now closed the bug as FIXED.)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-07-27 14:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-30 19:03 [Bug fortran/49597] New: gfortran namelist read bug david.sagan at gmail dot com
2011-06-30 19:32 ` [Bug fortran/49597] " dominiq at lps dot ens.fr
2011-07-26 21:00 ` jvdelisle at gcc dot gnu.org
2011-07-27 7:06 ` burnus at gcc dot gnu.org
2011-07-27 13:44 ` david.sagan at gmail dot com
2011-07-27 14:18 ` burnus 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).