You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well tried using latest VS 2022: Project properties -> C/C++ -> Command line -> added /d2UndefIntOverflow-
But on got compile error: Error C1007 unrecognized flag '-UndefIntOverflow-' in 'p2'
So it seems it's no longer valid flag, unless I'm missing something .
When using zig/clang/gcc, we unconditionally enable
-fwrapv
in order make overflowing signed operations well defined.But this is not the case when using MSVC.
–d2UndefIntOverflow–
is a compiler flag equivalent to-fwrapv
: https://devblogs.microsoft.com/cppblog/new-code-optimizer/We should figure out how to enable it in the Visual Studio solutions.
The text was updated successfully, but these errors were encountered: