Re:GCC Undefined Behavior Sanitizer – Ubsan
by readerrrr on Thursday October 16, 2014 @07:32PM
(#8468521)
That behavior is unspecified. The result might vary through compilers, but there is no undefined behavior.
If your program can handle the functions being called in a different order you are safe, which is different from u.b. where the compiler can ( theoretically )do anything.
If your program can handle the functions being called in a different order you are safe, which is different from u.b. where the compiler can ( theoretically )do anything.