Article ID: 167730
Article Last Modified on 1/5/2006
APPLIES TO
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ .NET 2002 Standard Edition
- Microsoft Visual C++ 6.0 Standard Edition
This article was previously published under Q167730
SYMPTOMS
The C2039 error message uses the incorrect class member name when you call a function that is not a member of a class. For example, the sample code in the "More Information" section generates the following errors:
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This bug was corrected in Microsoft Visual C++ .NET 2003.
MORE INFORMATION
Sample code
class t { }; void func() { t a; a.operator int(); a.operator char(); a.operator char *(); }
Keywords: kbtshoot kbbug kbfix KB167730