Forwarding you to

Exploring Undefined Behavior Using Constexpr - Shafik Yaghmour's Blog

We hear a lot about undefined behavior, most probably know we should avoid it. Maybe you have heard about specific types of undefined behavior, overflow, out of bounds memory access, strict aliasing etc. We can look for articles on undefined behavior and there are plenty, talks from several conferences. There are even some great tools for catching undefined behavior including static analysis (compiler warnings, clang-tidy , etc.) and dynamic analysis ( UBSan , ASan , etc.)