Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
using
/fsanitize=addresswith/clris experimental and may result in unexpected behavior.
Remarks
This warning occurs when you compile with both /fsanitize=address (AddressSanitizer) and /clr (Common Language Runtime compilation). Although you can use AddressSanitizer with managed C++, support is still experimental. This limitation can lead to missed detections and unpredictable application behavior. For more information on ASan compatibility, see AddressSanitizer known issues.
Example
The following command line generates warning C5089:
cl /fsanitize=address /clr test.cpp
To fix it, remove either /fsanitize=address or /clr from the command line.