这两天看见某些 blog 说 -fsanitize=undefined 编译命令可以预防 UB(未定义行为)。
-fsanitize=undefined
刚才用 Dev-C++ 6.3 编译了一下,发现这玩意会出锅?
是 Dev 太垃圾,还是我写错了?
如果是 Dev 太垃圾,有什么替代方案?