so i know this is undefined behavior, but does anyone know why this crashes when i compile this with zig cc specifically?
-
so i know this is undefined behavior, but does anyone know why this crashes when i compile this with zig cc specifically?
EDIT: looks like it defaults detecting all undefined behavior and silently crashing instead of showing error messages. not sure why it's not showing an error though >_> adding -O2 produces the expected result
-
josh g.replied to Eniko | Kitsune Tails out now! last edited by
@eniko
wait, why is this undefined behavior? Because the const may or may not exist for a given compiler? (I haven't looked at C for far too long, and not long enough) -
@eniko
(sorry my curiosity is not actually helpful for you) -
Copyright © 2024 NodeBB | Contributors