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: "siarhei.siamashka at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Feb 2012 15:56:24 +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 #4 from Siarhei Siamashka <siarhei.siamashka at gmail dot com> 2012-02-23 15:56:24 UTC ---
Now I wonder if multidimensional array is still treated as the same array in
"When two pointers are subtracted, both shall point to elements of the same
array object, or one past the last element of the array object; the result is
the difference of the subscripts of the two array elements."
https://groups.google.com/group/comp.lang.c/browse_thread/thread/3a16b9b33cb0cdd0/c16065f5189a0348