public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48976] New: INQUIRE with STREAM= not supported
@ 2011-05-12 13:02 burnus at gcc dot gnu.org
  2011-05-12 18:57 ` [Bug fortran/48976] " jvdelisle at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-05-12 13:02 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: INQUIRE with STREAM= not supported
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: jvdelisle@gcc.gnu.org


Fortran 2003/2008 support INQUIRE for STREAM:

"9.10.2.31 STREAM= specifier in the INQUIRE statement

"The scalar-default-char-variable in the STREAM= specifier is assigned the
value YES if STREAM is included in the set of allowed access methods for the
file, NO if STREAM is not included in the set of allowed access methods for the
file, and UNKNOWN if the processor is unable to determine whether STREAM is
included in the set of allowed access methods for the file or if the unit
identified by file-unit-number is not connected to a file."

However, gfortran rejects it with:

INQUIRE(99, stream=str)
           1
Error: Syntax error in INQUIRE statement at (1)



character(len=20) :: str
INQUIRE(99, stream=str)
end


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

* [Bug fortran/48976] INQUIRE with STREAM= not supported
  2011-05-12 13:02 [Bug fortran/48976] New: INQUIRE with STREAM= not supported burnus at gcc dot gnu.org
@ 2011-05-12 18:57 ` jvdelisle at gcc dot gnu.org
  2011-05-12 19:20 ` jvdelisle at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2011-05-12 18:57 UTC (permalink / raw)
  To: gcc-bugs

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.05.12 18:45:19
         AssignedTo|unassigned at gcc dot       |jvdelisle at gcc dot
                   |gnu.org                     |gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-05-12 18:45:19 UTC ---
I seem to recall this use to work. We need to check to see if this is a
regression.


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

* [Bug fortran/48976] INQUIRE with STREAM= not supported
  2011-05-12 13:02 [Bug fortran/48976] New: INQUIRE with STREAM= not supported burnus at gcc dot gnu.org
  2011-05-12 18:57 ` [Bug fortran/48976] " jvdelisle at gcc dot gnu.org
@ 2011-05-12 19:20 ` jvdelisle at gcc dot gnu.org
  2012-12-27  6:39 ` jvdelisle at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2011-05-12 19:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-05-12 19:04:46 UTC ---
OK, I checked.  We simply have not implemented this yet.  I will do so.


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

* [Bug fortran/48976] INQUIRE with STREAM= not supported
  2011-05-12 13:02 [Bug fortran/48976] New: INQUIRE with STREAM= not supported burnus at gcc dot gnu.org
  2011-05-12 18:57 ` [Bug fortran/48976] " jvdelisle at gcc dot gnu.org
  2011-05-12 19:20 ` jvdelisle at gcc dot gnu.org
@ 2012-12-27  6:39 ` jvdelisle at gcc dot gnu.org
  2012-12-27 18:07 ` jvdelisle at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2012-12-27  6:39 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2012-12-27 06:39:08 UTC ---
A patch has been submitted for review.


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

* [Bug fortran/48976] INQUIRE with STREAM= not supported
  2011-05-12 13:02 [Bug fortran/48976] New: INQUIRE with STREAM= not supported burnus at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-12-27  6:39 ` jvdelisle at gcc dot gnu.org
@ 2012-12-27 18:07 ` jvdelisle at gcc dot gnu.org
  2012-12-27 18:09 ` jvdelisle at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2012-12-27 18:07 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2012-12-27 18:07:39 UTC ---
Author: jvdelisle
Date: Thu Dec 27 18:07:33 2012
New Revision: 194733

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194733
Log:
2012-12-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

    PR libfortran/48976
    * io/inquire.c (inquire_via_unit): Set user stream inquiry variable to
    appropriate value based on unit access method. (inquire_via_filename):
    Since filename is not associated with an open unit, set stream inquiry
    to UNKNOWN.
    * io/io.h: Define inquire stream parameters.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/inquire.c
    trunk/libgfortran/io/io.h


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

* [Bug fortran/48976] INQUIRE with STREAM= not supported
  2011-05-12 13:02 [Bug fortran/48976] New: INQUIRE with STREAM= not supported burnus at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-12-27 18:07 ` jvdelisle at gcc dot gnu.org
@ 2012-12-27 18:09 ` jvdelisle at gcc dot gnu.org
  2012-12-27 19:25 ` jvdelisle at gcc dot gnu.org
  2012-12-27 20:16 ` jvdelisle at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2012-12-27 18:09 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2012-12-27 18:09:20 UTC ---
Author: jvdelisle
Date: Thu Dec 27 18:09:13 2012
New Revision: 194734

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194734
Log:
2012-12-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

    PR fortran/48976
    * gfortran.h (gfc_inquire struct): Add pointer for inquire stream.
    * io.c (io_tag): Add tag for inquire stream. (match_inquire_element):
    Add matcher for new tag. (gfc_resolve_inquire): Resolve new tag.
    * ioparm.def: Add new parameter for inquire stream.
    * trans-io.c (gfc_trans_inquire): Add tranlste code for inquire
    stream.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/io.c
    trunk/gcc/fortran/ioparm.def
    trunk/gcc/fortran/trans-io.c


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

* [Bug fortran/48976] INQUIRE with STREAM= not supported
  2011-05-12 13:02 [Bug fortran/48976] New: INQUIRE with STREAM= not supported burnus at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-12-27 18:09 ` jvdelisle at gcc dot gnu.org
@ 2012-12-27 19:25 ` jvdelisle at gcc dot gnu.org
  2012-12-27 20:16 ` jvdelisle at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2012-12-27 19:25 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2012-12-27 19:24:47 UTC ---
Author: jvdelisle
Date: Thu Dec 27 19:24:44 2012
New Revision: 194736

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194736
Log:
2012-12-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

    PR fortran/48976
    * gfortran.dg/inquire_15.f90: New.

Added:
    trunk/gcc/testsuite/gfortran.dg/inquire_15.f90
Modified:
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/48976] INQUIRE with STREAM= not supported
  2011-05-12 13:02 [Bug fortran/48976] New: INQUIRE with STREAM= not supported burnus at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-12-27 19:25 ` jvdelisle at gcc dot gnu.org
@ 2012-12-27 20:16 ` jvdelisle at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2012-12-27 20:16 UTC (permalink / raw)
  To: gcc-bugs


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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

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

--- Comment #7 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2012-12-27 20:15:58 UTC ---
Closing


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

end of thread, other threads:[~2012-12-27 20:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-12 13:02 [Bug fortran/48976] New: INQUIRE with STREAM= not supported burnus at gcc dot gnu.org
2011-05-12 18:57 ` [Bug fortran/48976] " jvdelisle at gcc dot gnu.org
2011-05-12 19:20 ` jvdelisle at gcc dot gnu.org
2012-12-27  6:39 ` jvdelisle at gcc dot gnu.org
2012-12-27 18:07 ` jvdelisle at gcc dot gnu.org
2012-12-27 18:09 ` jvdelisle at gcc dot gnu.org
2012-12-27 19:25 ` jvdelisle at gcc dot gnu.org
2012-12-27 20:16 ` jvdelisle 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).