Remix.run Logo
deathanatos 2 hours ago

> undefined behavior makes debugging intractable:

By their own admission, the compiler warns about the UB. "-Wanal"¹, as some call it, makes it an error. Under UBSan the program aborts with:

  code.cpp:4:6: runtime error: execution reached the end of a value-returning function without returning a value
… "intractable"?

¹a humorous name for -Wextra -Wall -Werror