I meant it philosophically, but now I have investigated and ugh https://godbolt.org/g/piu9ka cc @RichFelker
No, but success/failure under conditions it must necessarily fail is observable behavior.
-
-
Nothing in the C std says that it must necessarily fail.
-
POSIX has rlimits, plus there's the PTRDIFF_MAX issue. A C compiler for such envs can't assume no guaranteed failure.
-
AIUI POSIX rlimits are intended as an external limit on a program. Suppose that a compiler integrates a memory\
-
compression into a built binary. I guess rlimits are supposed to only limit amount of memory as it seen from outside.
-
As for the PTRDIFF_MAX issue, clang seems to ignore it completely.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.