https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109364
--- Comment #7 from contact at thunderperfectwitchcraft dot org --- I'm not sure if I understand you correct (as I'm not a native speaker): You say that it crashes by chance because it is undefined behavior, right? On reddit, I got this as a reply: "I noticed that GCC13 seems to now add a purposeful invalid instruction to functions that have a return type, like Clang does. So your program crashes instead of attempting to continue with some trash return value." Which wouldn't be by chance to my understanding. What is correct?