This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/52355] [4.7 regression] address difference between array elements is not considered to be a compile time constant anymore
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Feb 2012 09:47:33 +0000
- Subject: [Bug middle-end/52355] [4.7 regression] address difference between array elements is not considered to be a compile time constant anymore
- Auto-submitted: auto-generated
- References: <bug-52355-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52355
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-24 09:47:33 UTC ---
We fold end up trying to fold
(long int) &(*(a + 256))[0][0] - (long int) &(*a)[0][0] because a is of
type char[16][16] *.
I have a patch.