[Bug fortran/84506] [6/7/8 Regression] INQUIRE(pos=) always sets pos=0 with -fdefault-integer-8

jvdelisle at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 23 19:55:00 GMT 2018


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

--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Fri Feb 23 19:53:04 2018
New Revision: 257951

URL: https://gcc.gnu.org/viewcvs?rev=257951&root=gcc&view=rev
Log:
2018-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        Backport from trunk
        PR fortran/84506
        * trans-io.c (set_parameter_value_inquire): Adjust range check of
        negative unit values for kind=8 units to the kind=4 negative limit.

        * gfortran.dg/inquire_19.f90: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/gfortran.dg/inquire_19.f90
Modified:
    branches/gcc-6-branch/gcc/fortran/ChangeLog
    branches/gcc-6-branch/gcc/fortran/trans-io.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list