public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28655]  New: [F2003]  In/output:  DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING=
@ 2006-08-08 16:43 tobias dot burnus at physik dot fu-berlin dot de
  2006-09-28  8:03 ` [Bug fortran/28655] " fxcoudert at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2006-08-08 16:43 UTC (permalink / raw)
  To: gcc-bugs

(should block F2003 meta PR 20585)

gfortran should support:

- DECIMAL= 'COMMA' or 'POINT' specifier in OPEN, READ, WRITE and INQUIRE
(9.4.5.5, 9.5.1.6  in F2003 standard)
- DP and DC as edit descriptors (10.7.8)

- SIGN= 'PLUS', 'SUPPRESS' or 'PROCESSOR_DEFINED' specifier for OPEN, WRITE and
INQUIRE (9.4.5.14, 9.5.1.13)
- SS, SP and S edit descriptors (10.7.4)

- DELIM= 'APOSTROPHE', 'QUOTE' or 'NONE' also for WRITE  (9.4.5.6, 9.5.1.7)

- BLANK= 'NULL'/'ZERO' and PAD= 'YES'/'NO' specifiers: Now also for READ 
(9.4.5.10, 9.4.5.4; new: 9.5.1.5, 9.5.1.9)

- ENCODING= 'DEFAULT'/'UTF-8' (open); 'UTF-8'/'UNDEFINED'/'UNKNOWN'/... for
INQUIRE (9.4.5.7, 9.9.1.9)

---------------------
program iotests
  implicit none
  character(len=45) :: a
  real, parameter :: pi = 3.14159265358979323846
!  write(*,'(f10.3,s,f10.3,sp,f10.3,ss,f10.3)',SIGN='PLUS') pi, pi, pi, pi
!  write(*,'(f10.3,dc,f10.3,dp,f10.3)',DECIMAL='COMMA') pi, pi, pi
!  write(6,*,delim='quote') 'Hello'
  open(99,file='test.dat',form='formatted',status='new')
  write(99,'(a)') 'hello'
  close(99)
  open(99,file="test.dat",form='formatted',status='old', &
       PAD='YES',BLANK='NULL',ENCODING='DEFAULT')
  read(99,*,PAD='NO',BLANK='NULL') a
  close(99)
end program iotests
---------------------

The current diagnostic for 'sp' is strange:
  write(*,'(f10.3,dc,f10.3,f10.3)') pi, pi, pi
                                             1
Warning: Positive width required in format string at (1)
-- and --
Fortran runtime error: Nonnegative width required in format
(f10.3,dc,f10.3,f10.3)
        ^


-- 
           Summary: [F2003]  In/output:  DECIMAL=/dp/dc; SIGN=/S/SP/SS
                    BLANK=/PAD=; DELIM=; ENCODING=
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: enhancement
          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=28655


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

* [Bug fortran/28655] [F2003]  In/output:  DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING=
  2006-08-08 16:43 [Bug fortran/28655] New: [F2003] In/output: DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING= tobias dot burnus at physik dot fu-berlin dot de
@ 2006-09-28  8:03 ` fxcoudert at gcc dot gnu dot org
  2008-04-05 22:48 ` burnus at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-09-28  8:03 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-09-28 08:03:35
               date|                            |


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


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

* [Bug fortran/28655] [F2003]  In/output:  DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING=
  2006-08-08 16:43 [Bug fortran/28655] New: [F2003] In/output: DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING= tobias dot burnus at physik dot fu-berlin dot de
  2006-09-28  8:03 ` [Bug fortran/28655] " fxcoudert at gcc dot gnu dot org
@ 2008-04-05 22:48 ` burnus at gcc dot gnu dot org
  2008-04-07 22:30 ` jvdelisle at gcc dot gnu dot org
  2008-04-08  8:42 ` burnus at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-04-05 22:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2008-04-05 22:47 -------
Mostly fixed by the check in for PR 25829.

Missing: Some clean up, INQUIRE, round=, and encoding=.


-- 


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


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

* [Bug fortran/28655] [F2003]  In/output:  DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING=
  2006-08-08 16:43 [Bug fortran/28655] New: [F2003] In/output: DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING= tobias dot burnus at physik dot fu-berlin dot de
  2006-09-28  8:03 ` [Bug fortran/28655] " fxcoudert at gcc dot gnu dot org
  2008-04-05 22:48 ` burnus at gcc dot gnu dot org
@ 2008-04-07 22:30 ` jvdelisle at gcc dot gnu dot org
  2008-04-08  8:42 ` burnus at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-04-07 22:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2008-04-07 22:29 -------
Now completed.  INQUIRE functions work.  Closing this PR will open seorate PRS
for the run time items UTF-8 and ROUNDing modes.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


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

* [Bug fortran/28655] [F2003]  In/output:  DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING=
  2006-08-08 16:43 [Bug fortran/28655] New: [F2003] In/output: DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING= tobias dot burnus at physik dot fu-berlin dot de
                   ` (2 preceding siblings ...)
  2008-04-07 22:30 ` jvdelisle at gcc dot gnu dot org
@ 2008-04-08  8:42 ` burnus at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-04-08  8:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2008-04-08 08:41 -------
(In reply to comment #1)
> Mostly fixed by the check in for PR 25829.
> Missing: Some clean up, INQUIRE, round=, and encoding=.

Follow up: PR 35863, PR 35862


-- 


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


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

end of thread, other threads:[~2008-04-08  8:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-08 16:43 [Bug fortran/28655] New: [F2003] In/output: DECIMAL=/dp/dc; SIGN=/S/SP/SS BLANK=/PAD=; DELIM=; ENCODING= tobias dot burnus at physik dot fu-berlin dot de
2006-09-28  8:03 ` [Bug fortran/28655] " fxcoudert at gcc dot gnu dot org
2008-04-05 22:48 ` burnus at gcc dot gnu dot org
2008-04-07 22:30 ` jvdelisle at gcc dot gnu dot org
2008-04-08  8:42 ` 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).