https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78534

--- Comment #24 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Mon Jan  8 12:12:05 2018
New Revision: 256337

URL: https://gcc.gnu.org/viewcvs?rev=256337&root=gcc&view=rev
Log:
PR 78534 Regression on 32-bit targets

By switching from int to size_t in order to handle larger values,
r256322 introduced a bug that manifested itself on 32-bit
targets. Fixed by using the correct type to store the result of a
next_array_record call.

Regtested on x86_64-pc-linux-gnu and i686-pc-linux-gnu, committed to
trunk as obvious.

libgfortran/ChangeLog:

2018-01-08  Janne Blomqvist  <j...@gcc.gnu.org>

        PR 78534, bugfix for r256322
        * io/transfer.c (next_record_w): Use correct type for return value
        of next_array_record.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/transfer.c

Reply via email to