public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28224]  New: gfortran should support namelist (nml) for internal file units
@ 2006-07-02 21:34 tobias dot burnus at physik dot fu-berlin dot de
  2006-07-02 23:11 ` [Bug fortran/28224] " jvdelisle at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2006-07-02 21:34 UTC (permalink / raw)
  To: gcc-bugs

If I'm not completely mistaken, Fortran 2003 allows to read namelists from
internal files whereas it was forbidden in Fortran 95.
At least I find in the F95/2005 book (in the f95 section) that it is forbidden,
but I cannot find it in the Fortran 2003 standard.
And also Richard E Maine
(http://www.codecomments.com/archive271-2005-3-438971.html) seems to recall
that this restriction was dropped in Fortran2003.

Currently:
Error: Internal file at (1) is incompatible with namelist

Expected: Allow this. For std=f95 you might want to spit out an error/warning,
though.


-- 
           Summary: gfortran should support namelist (nml) for internal file
                    units
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tobias dot burnus at physik dot fu-berlin dot de


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


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

* [Bug fortran/28224] gfortran should support namelist (nml) for internal file units
  2006-07-02 21:34 [Bug fortran/28224] New: gfortran should support namelist (nml) for internal file units tobias dot burnus at physik dot fu-berlin dot de
@ 2006-07-02 23:11 ` jvdelisle at gcc dot gnu dot org
  2006-07-14  5:07 ` jvdelisle at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-02 23:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jvdelisle at gcc dot gnu dot org  2006-07-02 23:10 -------
I can look into this.


-- 

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         |2006-07-02 23:10:59
               date|                            |


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


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

* [Bug fortran/28224] gfortran should support namelist (nml) for internal file units
  2006-07-02 21:34 [Bug fortran/28224] New: gfortran should support namelist (nml) for internal file units tobias dot burnus at physik dot fu-berlin dot de
  2006-07-02 23:11 ` [Bug fortran/28224] " jvdelisle at gcc dot gnu dot org
@ 2006-07-14  5:07 ` jvdelisle at gcc dot gnu dot org
  2006-10-26  8:28 ` patchapp at dberlin dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-14  5:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2006-07-14 05:07 -------
F95

9.2.2.2 (1)

"Reading and writing records shall be accomplished only by sequential access
formatted input/output statements that do not specify namelist formatting."

F2003

9.3 (9)

"Reading and writing records shall be accomplished only by sequential access
formatted input/output statements."

Marking this as an enhancement.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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


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

* [Bug fortran/28224] gfortran should support namelist (nml) for internal file units
  2006-07-02 21:34 [Bug fortran/28224] New: gfortran should support namelist (nml) for internal file units tobias dot burnus at physik dot fu-berlin dot de
  2006-07-02 23:11 ` [Bug fortran/28224] " jvdelisle at gcc dot gnu dot org
  2006-07-14  5:07 ` jvdelisle at gcc dot gnu dot org
@ 2006-10-26  8:28 ` patchapp at dberlin dot org
  2006-10-28  2:34 ` jvdelisle at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2006-10-26  8:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2006-10-26 08:28 -------
Subject: Bug number PR 28224

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01326.html


-- 


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


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

* [Bug fortran/28224] gfortran should support namelist (nml) for internal file units
  2006-07-02 21:34 [Bug fortran/28224] New: gfortran should support namelist (nml) for internal file units tobias dot burnus at physik dot fu-berlin dot de
                   ` (2 preceding siblings ...)
  2006-10-26  8:28 ` patchapp at dberlin dot org
@ 2006-10-28  2:34 ` jvdelisle at gcc dot gnu dot org
  2006-10-28 21:46 ` burnus at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-10-28  2:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jvdelisle at gcc dot gnu dot org  2006-10-28 02:34 -------
There was a recent glibc update that came through on the distros that fixed
that particular test case.  I am unassigning myself since Tobias has got a good
go at this.  


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|jvdelisle at gcc dot gnu dot|unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug fortran/28224] gfortran should support namelist (nml) for internal file units
  2006-07-02 21:34 [Bug fortran/28224] New: gfortran should support namelist (nml) for internal file units tobias dot burnus at physik dot fu-berlin dot de
                   ` (3 preceding siblings ...)
  2006-10-28  2:34 ` jvdelisle at gcc dot gnu dot org
@ 2006-10-28 21:46 ` burnus at gcc dot gnu dot org
  2006-10-28 21:59 ` burnus at gcc dot gnu dot org
  2006-10-28 21:59 ` burnus at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-10-28 21:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from burnus at gcc dot gnu dot org  2006-10-28 21:46 -------
Accept.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |burnus at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-07-02 23:10:59         |2006-10-28 21:46:49
               date|                            |


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


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

* [Bug fortran/28224] gfortran should support namelist (nml) for internal file units
  2006-07-02 21:34 [Bug fortran/28224] New: gfortran should support namelist (nml) for internal file units tobias dot burnus at physik dot fu-berlin dot de
                   ` (5 preceding siblings ...)
  2006-10-28 21:59 ` burnus at gcc dot gnu dot org
@ 2006-10-28 21:59 ` burnus at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-10-28 21:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from burnus at gcc dot gnu dot org  2006-10-28 21:59 -------
Fixed.


-- 

burnus at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/28224] gfortran should support namelist (nml) for internal file units
  2006-07-02 21:34 [Bug fortran/28224] New: gfortran should support namelist (nml) for internal file units tobias dot burnus at physik dot fu-berlin dot de
                   ` (4 preceding siblings ...)
  2006-10-28 21:46 ` burnus at gcc dot gnu dot org
@ 2006-10-28 21:59 ` burnus at gcc dot gnu dot org
  2006-10-28 21:59 ` burnus at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-10-28 21:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from burnus at gcc dot gnu dot org  2006-10-28 21:59 -------
Subject: Bug 28224

Author: burnus
Date: Sat Oct 28 21:59:20 2006
New Revision: 118113

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118113
Log:
fortran/
2006-10-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/28224
        * io.c (check_io_constraints): Allow namelists
          for internal files for Fortran 2003.

testsuite/
2006-10-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/28224
        * gfortran.dg/io_constraints_2.f90: Use -std=f95.
        * gfortran.dg/namelist_internal.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/namelist_internal.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/io.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/io_constraints_2.f90


-- 


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


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

end of thread, other threads:[~2006-10-28 21:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-02 21:34 [Bug fortran/28224] New: gfortran should support namelist (nml) for internal file units tobias dot burnus at physik dot fu-berlin dot de
2006-07-02 23:11 ` [Bug fortran/28224] " jvdelisle at gcc dot gnu dot org
2006-07-14  5:07 ` jvdelisle at gcc dot gnu dot org
2006-10-26  8:28 ` patchapp at dberlin dot org
2006-10-28  2:34 ` jvdelisle at gcc dot gnu dot org
2006-10-28 21:46 ` burnus at gcc dot gnu dot org
2006-10-28 21:59 ` burnus at gcc dot gnu dot org
2006-10-28 21:59 ` burnus 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).