Article ID: 226110 - View products that this article applies to.
This article was previously published under Q226110
This article has been archived. It is offered "as is" and will no longer be updated.
When creating an object that is a copy of a virtual function return value (a temporary object) using the compiler-supplied copy constructor, you may get the following error:
test.cpp(22) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Please see the steps to reproduce in the More Information section below.
There are four ways to get around the problem:
NOTE: If you define a copy constructor, you should also define an assignment operator (operator=).
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Visual C++ .NET.
Article ID: 226110 - Last Review: February 28, 2014 - Revision: 3.0
Contact us for more help
Connect with Answer Desk for expert help.