This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2007 13:44:02 -0000
- Subject: [Bug middle-end/30636] [4.3 Regression] incorrect array bounds warning on multi-dimensional arrays
- References: <bug-30636-602@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rguenth at gcc dot gnu dot org 2007-01-31 13:44 -------
Note that replacing
D.2440_4 = base_1 + 2048B;
with
D.2440_4 = &emergency_buffer[0][2048];
as done by ccp1 is not valid as the new index (2048) is outside of the
value range of TYPE_DOMAIN there. This may eventually confuse VRP and
aliasing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30636