This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35427] pointer subtraction in very big array
- From: "akr at m17n dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2008 00:17:38 -0000
- Subject: [Bug c/35427] pointer subtraction in very big array
- References: <bug-35427-2489@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from akr at m17n dot org 2008-03-04 00:17 -------
The result can be representable by ptrdiff_t
because the result is number of longs.
The array is bit larger than 2**31 bytes.
So the result is bit larger than 2**29.
It is representable in signed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35427