public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented
@ 2004-05-31 22:59 jblomqvi at cc dot hut dot fi
  2004-05-31 23:03 ` [Bug fortran/15750] [gfortran] " jblomqvi at cc dot hut dot fi
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2004-05-31 22:59 UTC (permalink / raw)
  To: gcc-bugs

The iolength form of the inquire statement is not implemented yet, and marked
with gfc_todo. I'm currently looking into this issue, so I'll assign it to
myself for the time being to avoid duplication of effort.

-- 
           Summary: IOLENGTH form of INQUIRE statement not implemented
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: jblomqvi at cc dot hut dot fi
        ReportedBy: jblomqvi at cc dot hut dot fi
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/15750] [gfortran] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
@ 2004-05-31 23:03 ` jblomqvi at cc dot hut dot fi
  2004-05-31 23:21 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2004-05-31 23:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jblomqvi at cc dot hut dot fi  2004-05-31 14:44 -------
Sorry, forgot to add [gfortran] to the summary. Additionally, here's a small
test which fails to compile:

program iolength
  implicit none
  integer :: A(3) = (/1,2,3/)
  integer :: iol
  inquire (iolength = iol) A
  if (iol /= 3) then
     call abort
  end if
end program iolength

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|IOLENGTH form of INQUIRE    |[gfortran] IOLENGTH form of
                   |statement not implemented   |INQUIRE statement not
                   |                            |implemented


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


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

* [Bug fortran/15750] [gfortran] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
  2004-05-31 23:03 ` [Bug fortran/15750] [gfortran] " jblomqvi at cc dot hut dot fi
@ 2004-05-31 23:21 ` pinskia at gcc dot gnu dot org
  2004-06-20 15:24 ` [Bug fortran/15750] " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-31 23:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-31 15:04 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-31 15:04:09
               date|                            |


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
  2004-05-31 23:03 ` [Bug fortran/15750] [gfortran] " jblomqvi at cc dot hut dot fi
  2004-05-31 23:21 ` pinskia at gcc dot gnu dot org
@ 2004-06-20 15:24 ` pinskia at gcc dot gnu dot org
  2004-06-20 15:27 ` jblomqvi at cc dot hut dot fi
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-20 15:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-20 15:24 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-06/msg01608.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (2 preceding siblings ...)
  2004-06-20 15:24 ` [Bug fortran/15750] " pinskia at gcc dot gnu dot org
@ 2004-06-20 15:27 ` jblomqvi at cc dot hut dot fi
  2004-06-22  0:44 ` cvs-commit at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2004-06-20 15:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jblomqvi at cc dot hut dot fi  2004-06-20 15:27 -------
Wow, you're pretty quick, Andrew.. :)

Anyways, I additionally wanted to mention that the test program above fails even
though there is no fault in gfortran, as it assumes a file storage unit (see
fortran standard) of one word (32 bit) while gfortran actually uses a one byte
(8 bit) file storage unit, as the standard recommends.

-- 


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (3 preceding siblings ...)
  2004-06-20 15:27 ` jblomqvi at cc dot hut dot fi
@ 2004-06-22  0:44 ` cvs-commit at gcc dot gnu dot org
  2004-07-16 16:52 ` jblomqvi at cc dot hut dot fi
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-22  0:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-22 00:44 -------
Subject: Bug 15750

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pbrook@gcc.gnu.org	2004-06-22 00:43:55

Modified files:
	gcc/fortran    : ChangeLog io.c resolve.c trans-io.c 
	gcc/testsuite  : ChangeLog 
	libgfortran    : ChangeLog 
	libgfortran/io : inquire.c io.h transfer.c 
Added files:
	gcc/testsuite/gfortran.fortran-torture/execute: iolength_1.f90 
	                                                iolength_3.f90 

Log message:
	PR fortran/15750
	* io.c (gfc_match_inquire): Bugfix for iolength related stuff.
	(gfc_resolve_inquire): Resolve the iolength tag.  Return
	SUCCESS at end of function if no failure has occured.
	* resolve.c (resolve_code): Resolve if iolength is encountered.
	* trans-io.c: (ioparm_iolength, iocall_iolength,
	iocall_iolength_done): New variables.
	(last_dt): Add IOLENGTH.
	(gfc_build_io_library_fndecls ): Set iolength related variables.
	(gfc_trans_iolength): Implement.
	(gfc_trans_dt_end): Treat iolength as a third form of data transfer.
	libgfortran/
	PR fortran/15750
	* inquire.c (st_inquire): Add comment
	* io.h (st_parameter): Add iolength.
	(st_iolength, st_iolength_done): Declare.
	* transfer.c (iolength_transfer, iolength_transfer_init,
	st_iolength, st_iolength_done): New functions.
	testsuite/
	* gfortran.fortran-torture/execute/iolength_1.f90: New test.
	* gfortran.fortran-torture/execute/iolength_3.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.81&r2=1.82
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/io.c.diff?cvsroot=gcc&r1=1.8&r2=1.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-io.c.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3881&r2=1.3882
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/iolength_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/iolength_3.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.39&r2=1.40
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/inquire.c.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/io.h.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&r1=1.6&r2=1.7



-- 


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (4 preceding siblings ...)
  2004-06-22  0:44 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-16 16:52 ` jblomqvi at cc dot hut dot fi
  2004-08-29 17:04 ` tobi at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2004-07-16 16:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jblomqvi at cc dot hut dot fi  2004-07-16 16:52 -------
It seems that the failing testcase is because of the same bug as PR 15364. I'm
not sure though, so I wont put a "depends on" thingy.

-- 


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (5 preceding siblings ...)
  2004-07-16 16:52 ` jblomqvi at cc dot hut dot fi
@ 2004-08-29 17:04 ` tobi at gcc dot gnu dot org
  2004-09-08 19:35 ` toon at moene dot indiv dot nluug dot nl
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-08-29 17:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-08-29 17:04 -------
I added the dependency, as it makes easier to find out which bugs are important,
and if 15364 is fixed, we can still reexamine this bug if this was really the
problem (which I do indeed assume).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |15364


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (6 preceding siblings ...)
  2004-08-29 17:04 ` tobi at gcc dot gnu dot org
@ 2004-09-08 19:35 ` toon at moene dot indiv dot nluug dot nl
  2004-09-09 23:08 ` jblomqvi at cc dot hut dot fi
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2004-09-08 19:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2004-09-08 19:35 -------
Isn't this solved by now ?  The "small testcase" below compiles, and printing
the iolength obtained, gives 12, a not unreasonable answer.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (7 preceding siblings ...)
  2004-09-08 19:35 ` toon at moene dot indiv dot nluug dot nl
@ 2004-09-09 23:08 ` jblomqvi at cc dot hut dot fi
  2004-09-10  7:31 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2004-09-09 23:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jblomqvi at cc dot hut dot fi  2004-09-09 23:08 -------
Uh, what "small testcase" do you mean, Toon?

Anyways, the PR can't be closed yet, since the iolength_2.f90 testcase still
fails. Actually nowadays it won't even compile, error message is:

iolength_2.f90: In function `MAIN__':
iolength_2.f90:20: fatal error: gfc_todo: Not Implemented: IO of arrays in
derived types
compilation terminated.

I think the best course of action is to wait until PR 15364 gets fixed, probably
this will get automagically fixed at the same time.

-- 


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (8 preceding siblings ...)
  2004-09-09 23:08 ` jblomqvi at cc dot hut dot fi
@ 2004-09-10  7:31 ` pinskia at gcc dot gnu dot org
  2004-09-20  9:39 ` tobi at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-10  7:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-10 07:31 -------
See Paul's comment #6 for the current failing case.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
   Last reconfirmed|2004-05-31 15:04:09         |2004-09-10 07:31:53
               date|                            |


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (9 preceding siblings ...)
  2004-09-10  7:31 ` pinskia at gcc dot gnu dot org
@ 2004-09-20  9:39 ` tobi at gcc dot gnu dot org
  2004-09-20  9:40 ` tobi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-09-20  9:39 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 15750 depends on bug 15364, which changed state.

Bug 15364 Summary: Array fields in derived types not printed correctly.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15364

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (10 preceding siblings ...)
  2004-09-20  9:39 ` tobi at gcc dot gnu dot org
@ 2004-09-20  9:40 ` tobi at gcc dot gnu dot org
  2004-09-20 11:10 ` cvs-commit at gcc dot gnu dot org
  2004-11-06 15:44 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-09-20  9:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-09-20 09:40 -------
Fixed. i.e. the testcase from #6 works now.

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


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (11 preceding siblings ...)
  2004-09-20  9:40 ` tobi at gcc dot gnu dot org
@ 2004-09-20 11:10 ` cvs-commit at gcc dot gnu dot org
  2004-11-06 15:44 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-20 11:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-20 11:09 -------
Subject: Bug 15750

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tobi@gcc.gnu.org	2004-09-20 11:09:47

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.fortran-torture/execute: iolength_2.f90 

Log message:
	PR fortran/15750
	* gfortran.fortran-torture/execute/iolength_2.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4318&r2=1.4319
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/iolength_2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug fortran/15750] IOLENGTH form of INQUIRE statement not implemented
  2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
                   ` (12 preceding siblings ...)
  2004-09-20 11:10 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-06 15:44 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-06 15:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2004-11-06 15:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-31 22:59 [Bug fortran/15750] New: IOLENGTH form of INQUIRE statement not implemented jblomqvi at cc dot hut dot fi
2004-05-31 23:03 ` [Bug fortran/15750] [gfortran] " jblomqvi at cc dot hut dot fi
2004-05-31 23:21 ` pinskia at gcc dot gnu dot org
2004-06-20 15:24 ` [Bug fortran/15750] " pinskia at gcc dot gnu dot org
2004-06-20 15:27 ` jblomqvi at cc dot hut dot fi
2004-06-22  0:44 ` cvs-commit at gcc dot gnu dot org
2004-07-16 16:52 ` jblomqvi at cc dot hut dot fi
2004-08-29 17:04 ` tobi at gcc dot gnu dot org
2004-09-08 19:35 ` toon at moene dot indiv dot nluug dot nl
2004-09-09 23:08 ` jblomqvi at cc dot hut dot fi
2004-09-10  7:31 ` pinskia at gcc dot gnu dot org
2004-09-20  9:39 ` tobi at gcc dot gnu dot org
2004-09-20  9:40 ` tobi at gcc dot gnu dot org
2004-09-20 11:10 ` cvs-commit at gcc dot gnu dot org
2004-11-06 15:44 ` 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).