And the standards in question are actually have very clear and simple language disallowing those shenanigans.
"Permissible undefined behavior ranges from ignoring the situation completely with unpredictable results, to behaving during translation or program execution in a documented manner characteristic of the environment (with or without the issuance of a diagnostic message), to terminating a translation or execution (with the issuance of a diagnostic message)."
Alas, that language was made non-binding and now the people who made it non-binding pretend it doesn't exist at all.
https://blog.metaobject.com/2018/07/a-one-word-change-to-c-s...