public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/56735] New: Namelist Read Error with question marks
@ 2013-03-26 10:08 madawilliams at gmail dot com
  2013-03-26 10:17 ` [Bug fortran/56735] " dominiq at lps dot ens.fr
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: madawilliams at gmail dot com @ 2013-03-26 10:08 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56735
           Summary: Namelist Read Error with question marks
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: madawilliams@gmail.com


Hi,

This is my first ever bug report so apologies if i miss some vital piece of
information. I have some legacy code which compiles and runs with versions of
gfortran up to 4.5. However after this the code compiles and runs but the
namelist is not read correctly. There is no IO errors but non of the variables
are set to their respective values. I have managed to narrow this down to the
fact that the legacy namelist has question marks in the namelist file outside
of any data block. Below is a very simple code and namelist which shows this.
If you remove the question mark from the name list the values are set,
otherwise they are not.

-test.f
        PROGRAM TEST

        INTEGER int1,int2,int3

        NAMELIST /temp/ int1,int2,int3

        OPEN (53,FILE='test.nam',STATUS='OLD', IOSTAT=istat)
        READ (53,temp)
        WRITE(*, temp)
        PRINT*, istat
        END PROGRAM

-test.nam
  ? 

 $temp
  int1=1
  int2=2
  int3=3
 $END

I understand this might be non standard formatting for the namelist file, but
as I said it works with gfortran <4.6 so seems like a regression.


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

end of thread, other threads:[~2013-04-04  8:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26 10:08 [Bug fortran/56735] New: Namelist Read Error with question marks madawilliams at gmail dot com
2013-03-26 10:17 ` [Bug fortran/56735] " dominiq at lps dot ens.fr
2013-03-26 10:26 ` madawilliams at gmail dot com
2013-03-26 10:36 ` dominiq at lps dot ens.fr
2013-03-26 11:47 ` [Bug fortran/56735] [4.6/4.7/4.8/4.9 Regression] " dominiq at lps dot ens.fr
2013-03-26 12:14 ` madawilliams at gmail dot com
2013-03-28 12:42 ` burnus at gcc dot gnu.org
2013-03-29  9:34 ` burnus at gcc dot gnu.org
2013-03-30 15:00 ` burnus at gcc dot gnu.org
2013-04-02 16:31 ` burnus at gcc dot gnu.org
2013-04-03  9:53 ` burnus at gcc dot gnu.org
2013-04-04  8:38 ` burnus at gcc dot gnu.org
2013-04-04  8:40 ` burnus at gcc dot gnu.org
2013-04-04  8:41 ` madawilliams at gmail dot com

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).