Article ID: 199057 - Last Review: January 11, 2006 - Revision: 4.1 BUG: Expansion of the __LINE__ macro is incorrect when you use Debug Information for Edit and Continue (/ZI) in Visual C++This article was previously published under Q199057 SYMPTOMS The results of the __LINE__ macro are incorrect when you
use Debug Information for Edit and Continue (/ZI). The problem may manifest
itself as compiler, linker, or run-time errors. WORKAROUND To work around this problem, use the Program Database
option (/Zi) instead of Edit and Continue (/ZI). STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATION The following sample code demonstrates the problem.
Message at line 12
When compiled with the /ZI option, output is incorrect:
Message at line (__LINE__Var+1)
| Article Translations
|
Back to the top
