This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- Comment #3 from fxcoudert at gcc dot gnu dot org  2006-07-06 20:37 -------
Subject: Bug 28129

Author: fxcoudert
Date: Thu Jul  6 20:37:36 2006
New Revision: 115231

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115231
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.

Added:
    trunk/gcc/testsuite/gfortran.dg/bounds_check_4.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]