The information in this article applies to:
SYMPTOMS
If inline assembly is used in an inline member function defined within
a templated class, the compiler generates these errors:
If the assembly instruction is of the form _asm int 3: The type of error depends on whether the assembly instruction is enclosed in braces or not. NOTE: The same error occurs for macros like ASSERT and VERIFY, which expand to an _asm {int 3} instruction. RESOLUTIONDefine the member function outside the templated class using the "inline" keyword. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Visual C++, 32-bit Edition, version 4.0. MORE INFORMATIONSample Code to Reproduce Problem
In this code, the good_fun() compiles without any error.
Additional query words: 2.00 2.10 2.20 9.00 9.10
Keywords : kbCompiler kbCPPonly kbVC |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |