re PR fortran/16579 (gfortran: (ICHAR(CHAR(I)) .NE. I) when 128 <= I <= 255)
fortran/ PR fortran/16579 * trans-types.c (gfc_init_types): Make gfc_character1_type_node an unsigned char. testsuite/ PR fortran/16579 * gfortran.fortran-torture/execute/intrinsic_i_char.f90: New test. From-SVN: r86846
This commit is contained in:
parent
334ff453ea
commit
149a42dd2d
@ -1,3 +1,9 @@
|
||||
2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
PR fortran/16579
|
||||
* trans-types.c (gfc_init_types): Make gfc_character1_type_node an
|
||||
unsigned char.
|
||||
|
||||
2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
* CONTRIB, NEWS, README, TODO: Remove obsolete files.
|
||||
|
@ -501,7 +501,8 @@ gfc_init_types (void)
|
||||
PUSH_TYPE (name_buf, type);
|
||||
}
|
||||
|
||||
gfc_character1_type_node = build_type_variant (signed_char_type_node, 0, 0);
|
||||
gfc_character1_type_node = build_type_variant (unsigned_char_type_node,
|
||||
0, 0);
|
||||
PUSH_TYPE ("char", gfc_character1_type_node);
|
||||
|
||||
PUSH_TYPE ("byte", unsigned_char_type_node);
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
PR fortran/16579
|
||||
* gfortran.fortran-torture/execute/intrinsic_i_char.f90: New test.
|
||||
|
||||
2004-08-31 Bud Davis <bdavis9659@comcast.net>
|
||||
|
||||
PR libfortran/16805
|
||||
|
@ -0,0 +1,6 @@
|
||||
! simple test for the CHAR and ICHAR intrinsics
|
||||
! PR 16579
|
||||
DO I=0,255
|
||||
IF (ICHAR(CHAR(I)) /= I) CALL ABORT()
|
||||
END DO
|
||||
END
|
Loading…
Reference in New Issue
Block a user