https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68065

--- Comment #14 from joseph at codesourcery dot com <joseph at codesourcery dot 
com> ---
On Wed, 28 Oct 2015, ch3root at openwall dot com wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68065
> 
> --- Comment #13 from Alexander Cherepanov <ch3root at openwall dot com> ---
> On 2015-10-27 20:09, joseph at codesourcery dot com wrote:
> > I think it's undefined at the point where a type exceeds the limit on the
> > size of an object (half the address space minus one byte)
> 
> Wait, "char a[SIZE_MAX / 2]" works in gcc 5.2. Should I file a bug?

That's half the address space minus one byte (SIZE_MAX is odd, equal to 
(size_t) -1).  That is, it's meant to be accepted, but one byte more 
shouldn't be.

Reply via email to