https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87544
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Martin Sebor from comment #3) > At the same time, since the call malloc(SIZE_MAX) is guaranteed to fail, GCC > could fold it to zero But there is no call to malloc(SIZE_MAX), GCC is confused about the value. It would be bad to fold the call to malloc(8) to zero.