Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Good luck searching for UB in some huge codebase. The only thing worse than UB is infamous error messages in C++. I have better advice: stop using unsafe and unreadable langauges. Commented Sep 7 at 21:54
  • Obviously you shouldn’t have UB in your code in the first place. But looking for it is only needed to answer “whose fault”. Normally you just change the code to something that works correctly and don’t care whose fault it is. Commented Sep 8 at 6:14
  • "Looking for it is only needed to answer “whose fault”" Are you insane? The reason you look for it is to fix it, not to blame anyone. Wow. "You shouldn't have UB in the first place" is a pointless advice. Its like saying: "you shouldn't have made a mistake". Thanks, bro, helpful. I'm talking about searching for UB when you already know or at least suspect it is there. It is infinitely better if a language prevents you from making mistakes (or at least helps as much as possible), instead of depending on humans. Just use Rust. Or Go. Or anything other than C++. Commented Sep 8 at 7:47
  • Who is blaming anyone? I can’t fix it. Even if I knew exactly what the problem is, I cant fix it Commented Sep 8 at 16:46