[Bug fortran/28129] [4.1 only] gfortran -fbounds-check: Shows invalid array out of bounds error

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 24 21:03:00 GMT 2006



------- Comment #4 from fxcoudert at gcc dot gnu dot org  2006-07-24 21:02 -------
Subject: Bug 28129

Author: fxcoudert
Date: Mon Jul 24 21:02:39 2006
New Revision: 115722

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115722
Log:
        PR fortran/28129
        * trans-array.c (gfc_trans_array_bound_check): Add a locus
        argument, and use it in the error messages.
        (gfc_conv_array_index_offset): Donc perform bounds checking on
        the last dimension of assumed-size arrays.
        * gfortran.dg/bounds_check_4.f90: New test.

        PR fortran/27874
        * trans-stmt.c (compute_inner_temp_size): Don't perform bounds
        checking when calculating the bounds of scalarization.

        PR fortran/20892
        * interface.c (gfc_match_interface): Don't allow dummy procedures
        to have a generic interface.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/bounds_check_4.f90
      - copied unchanged from r115231,
trunk/gcc/testsuite/gfortran.dg/bounds_check_4.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/interface.c
    branches/gcc-4_1-branch/gcc/fortran/trans-array.c
    branches/gcc-4_1-branch/gcc/fortran/trans-stmt.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list