Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 995 Bytes

compiler-warning-c5072.md

File metadata and controls

26 lines (18 loc) · 995 Bytes
description title ms.date f1_keywords helpviewer_keywords
Learn more about: Compiler Warning (level 1) C5072
Compiler Warning (level 1) C5072
02/09/2024
C5072
C5072

Compiler Warning (level 1) C5072

ASAN enabled without debug information emission. Enable debug info for better ASAN error reporting

This warning occurs when you compile with Address Sanitizer (ASAN) turned on, but you don't also instruct the compiler to emit debug info. ASAN uses debug info to provide better diagnostics.

Example

The following command line generates warning C5072:

 cl /fsanitize=address /EHsc test.cpp

To fix it, have the compiler generate debug information by using a switch like /Zi or /Z7, like this: cl /fsanitize=address /EHsc /Zi test.cpp

See also

Address Sanitizer (ASAN)