public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/16704] New: Letter F not understood as a radix-16 digit in READ statement.
@ 2004-07-25 10:49 lei at il dot ibm dot com
  2004-07-25 18:08 ` [Bug libfortran/16704] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: lei at il dot ibm dot com @ 2004-07-25 10:49 UTC (permalink / raw)
  To: gcc-bugs

Letters A-E are understood as base-16 digits, but not F or f.

program main
  character*2 buf
  buf = 'ff'
  read (buf, '(Z2.2)'), i
  if (i.ne.255) call abort
end

% a.out
Fortran runtime error: Bad value during integer read


FIX FOLLOWS:
[lei@roadrunner io]% cvs diff -cp read.c
Index: read.c
===================================================================
RCS file: /cvsroot/gcc/gcc/libgfortran/io/read.c,v
retrieving revision 1.2
diff -c -p -r1.2 read.c
*** read.c      13 May 2004 06:41:02 -0000      1.2
--- read.c      25 Jul 2004 10:47:13 -0000
*************** read_radix (fnode * f, char *dest, int l
*** 526,531 ****
--- 526,532 ----
            case 'c':
            case 'd':
            case 'e':
+             case 'f':
              c = c - 'a' + '9' + 1;
              break;
  
*************** read_radix (fnode * f, char *dest, int l
*** 534,539 ****
--- 535,541 ----
            case 'C':
            case 'D':
            case 'E':
+             case 'F':
              c = c - 'A' + '9' + 1;
              break;

-- 
           Summary: Letter F not understood as a radix-16 digit in READ
                    statement.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lei at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug libfortran/16704] Letter F not understood as a radix-16 digit in READ statement.
  2004-07-25 10:49 [Bug libfortran/16704] New: Letter F not understood as a radix-16 digit in READ statement lei at il dot ibm dot com
@ 2004-07-25 18:08 ` pinskia at gcc dot gnu dot org
  2004-08-05  8:37 ` cvs-commit at gcc dot gnu dot org
  2004-08-05 15:47 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-25 18:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-25 18:08 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-25 18:08:33
               date|                            |
            Version|unknown                     |3.5.0


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


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

* [Bug libfortran/16704] Letter F not understood as a radix-16 digit in READ statement.
  2004-07-25 10:49 [Bug libfortran/16704] New: Letter F not understood as a radix-16 digit in READ statement lei at il dot ibm dot com
  2004-07-25 18:08 ` [Bug libfortran/16704] " pinskia at gcc dot gnu dot org
@ 2004-08-05  8:37 ` cvs-commit at gcc dot gnu dot org
  2004-08-05 15:47 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-05  8:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-05 08:37 -------
Subject: Bug 16704

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	steven@gcc.gnu.org	2004-08-05 08:37:43

Modified files:
	libgfortran    : ChangeLog 
	libgfortran/io : read.c 

Log message:
	Commit for Victor Leikehman  <lei@il.ibm.com>
	
	PR libgfortran/16704
	* io/read.c (read_radix): Understand letters f and F as hex digits.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.54&r2=1.55
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/read.c.diff?cvsroot=gcc&r1=1.2&r2=1.3



-- 


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


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

* [Bug libfortran/16704] Letter F not understood as a radix-16 digit in READ statement.
  2004-07-25 10:49 [Bug libfortran/16704] New: Letter F not understood as a radix-16 digit in READ statement lei at il dot ibm dot com
  2004-07-25 18:08 ` [Bug libfortran/16704] " pinskia at gcc dot gnu dot org
  2004-08-05  8:37 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-05 15:47 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-05 15:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-05 15:47 -------
Fixed.

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


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


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

end of thread, other threads:[~2004-08-05 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-25 10:49 [Bug libfortran/16704] New: Letter F not understood as a radix-16 digit in READ statement lei at il dot ibm dot com
2004-07-25 18:08 ` [Bug libfortran/16704] " pinskia at gcc dot gnu dot org
2004-08-05  8:37 ` cvs-commit at gcc dot gnu dot org
2004-08-05 15:47 ` 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).