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 middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays



------- Comment #9 from rguenth at gcc dot gnu dot org  2007-02-04 15:15 -------
Subject: Bug 30636

Author: rguenth
Date: Sun Feb  4 15:15:38 2007
New Revision: 121575

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121575
Log:
2007-02-04  Richard Guenther  <rguenther@suse.de>

        PR middle-end/30636
        * fold-const.c (try_move_mult_to_index): Make sure to not
        overflow one dimension of a multi-dimensional array access.

        * g++.dg/warn/pr30636.C: New testcase.
        * g++.dg/tree-ssa/tmmti-2.C: XFAIL parts.

Added:
    trunk/gcc/testsuite/g++.dg/warn/pr30636.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/tree-ssa/tmmti-2.C


-- 


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


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