BUG: Compiler Incorrectly Decorates C++ OperatorsLast reviewed: July 22, 1997Article ID: Q116169 |
7.00 | 1.00 1.50 1.51 1.52
MS-DOS | WINDOWS
kbtool kbbuglist
The information in this article applies to:
SYMPTOMSThe Microsoft C++ Compiler for MS-DOS, versions 8.0 and 8.0c, gives class operators incorrect function signatures. This does not cause compiler or linker errors to be generated, but it does, however, cause problems when you try to debug the application. Specifically, CodeView is unable to find the function by means of the Label/Function option on the Search menu.
STATUSMicrosoft has confirmed this to be a bug with the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONTo view this problem, use the following steps:
Sample Code
/* Compile options needed: /Zi /Od */ #include <stdio.h> struct testclass { int i; operator int() { return i; }; }; void test(int i) { printf("%d\n",i); } void main() { testclass f; f.i = 13; test(f); } |
Additional reference words: 1.00 1.50 7.00 8.00 8.00c
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |