public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/16579] New: gfortran: (ICHAR(CHAR(I)) .NE. I)  when 128 <= I <= 255
@ 2004-07-16  0:25 billingd at gcc dot gnu dot org
  2004-07-16  4:24 ` [Bug fortran/16579] " sgk at troutmask dot apl dot washington dot edu
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: billingd at gcc dot gnu dot org @ 2004-07-16  0:25 UTC (permalink / raw)
  To: gcc-bugs

Test g77.f-torture/execute/20010610.f fails with gfortran.
Looks like a signed vs unsigned char issue.

The test is:

      DO I = 0, 255
         IF (ICHAR(CHAR(I)) .NE. I) CALL ABORT
      ENDDO
      END

It fails for I >= 128

ICHAR(CHAR(128)) = -128
ICHAR(CHAR(129)) = -127
 ...
ICHAR(CHAR(255)) = -1

-- 
           Summary: gfortran: (ICHAR(CHAR(I)) .NE. I)  when 128 <= I <= 255
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: billingd at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-cygwin


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


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

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

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-16  0:25 [Bug fortran/16579] New: gfortran: (ICHAR(CHAR(I)) .NE. I) when 128 <= I <= 255 billingd at gcc dot gnu dot org
2004-07-16  4:24 ` [Bug fortran/16579] " sgk at troutmask dot apl dot washington dot edu
2004-07-16 20:54   ` Toon Moene
2004-07-16 20:54 ` toon at moene dot indiv dot nluug dot nl
2004-07-17  3:18 ` pinskia at gcc dot gnu dot org
2004-07-17  5:04 ` sgk at troutmask dot apl dot washington dot edu
2004-07-21 21:16 ` tobi at gcc dot gnu dot org
2004-08-29 19:16 ` tobi at gcc dot gnu dot org
2004-08-31 21:54 ` cvs-commit at gcc dot gnu dot org
2004-09-01  6:29 ` billingd at gcc dot gnu dot org
2004-09-01  6:30 ` cvs-commit at gcc dot gnu dot org
2004-09-01 21:12 ` tobi at gcc dot gnu dot org
2004-09-02  2:02 ` david dot billinghurst at comalco dot riotinto dot com dot au
2004-09-03  3:29 ` cvs-commit at gcc dot gnu dot org
2004-11-06 15:40 ` 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).