Edit

Compiler warning (level 1) C5089

using /fsanitize=address with /clr is 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.

See also

Address Sanitizer (ASAN)
AddressSanitizer known issues