Commit 8e249b23 by Thomas Koenig Committed by Thomas Koenig

re PR libfortran/18958 ([4.0 only] eoshift segfaults when shifting off the end of an array)

2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>

        PR libfortran/18958
        libgfortran.h:  Change typedef of index_type from size_t
        to ssize_t.

2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>

        PR libfortran/18958
        * gfortran.dg/eoshift.f90:  New test case.

From-SVN: r99047
parent f1aa042f
2005-04-30 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/18958
* gfortran.dg/eoshift.f90: New test case.
2005-04-30 Paul Thomas <pault@gcc.gnu.org> 2005-04-30 Paul Thomas <pault@gcc.gnu.org>
PR libfortran/18857 PR libfortran/18857
......
! { dg-do run }
! PR 18958: We used to segfault for eoshifting off the end of an array.
program main
character(len=20) line
write (line,'(I4)') eoshift((/1, 3/), 3)
end program main
2005-04-30 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/18958
libgfortran.h: Change typedef of index_type from size_t
to ssize_t.
2005-04-30 Paul Thomas <pault@gcc.gnu.org> 2005-04-30 Paul Thomas <pault@gcc.gnu.org>
PR libfortran/18857 PR libfortran/18857
......
...@@ -215,7 +215,7 @@ typedef complex double GFC_COMPLEX_8; ...@@ -215,7 +215,7 @@ typedef complex double GFC_COMPLEX_8;
/* The following two definitions must be consistent with the types used /* The following two definitions must be consistent with the types used
by the compiler. */ by the compiler. */
/* The type used of array indices, amongst other things. */ /* The type used of array indices, amongst other things. */
typedef size_t index_type; typedef ssize_t index_type;
/* The type used for the lengths of character variables. */ /* The type used for the lengths of character variables. */
typedef GFC_INTEGER_4 gfc_charlen_type; typedef GFC_INTEGER_4 gfc_charlen_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment