BUG: Class Access Specifier Is Ignored When Temporary Objects Are Created (263637)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q263637 SYMPTOMS
The compiler incorrectly uses private or protected constructors when temporary class objects are created.
NOTE: The compiler generates a C4248 warning if compiled with the /W3 or /W4 compiler switch.
Please refer to the sample code in the "More Information" section for details.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbBug kbCompiler kbCPPonly KB263637 |
---|
|