BUG: ????? ???? "??? ???? C1001: ??? ????? ?? ?????? ??????? ???????" ?????? ??? ??? ????? ???? ???? ?? ?????? ??????? ?????? ?? 6.0 Visual C++

?????? ????????? ?????? ?????????
???? ???????: 226110 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

???????

??? ????? ???? ???? ???? ??????? ?????? ??????? (???? ????) ???????? ????? ?????? ???? ?????? ?????? ??????? ???????, ?? ???? ??? ????? ??????:
test.cpp(22): ??? ???? C1001: "??? ????? ?? ???????"
(?????? ??????? ??????? ????? 'msc1.cpp' ? ????? 1794)
?????? ?????? ????? "????? ?????" ?? Visual C++
???????? ?? ??????? ?? ??? ??? ????????? "????? ?????" ?????? ??? ???? ?? ?????????

?????? ?????? ????? ????? ????? ?? ????? "???? ?? ?????????" ?????.

????

???? ???? ??? ?????? ??? ???? ???????:
  1. ????? ????? ???? ???. (???? ???? # 1 ?? ????? ???????? ???????? ?????).
  2. ????? ?????? ???????? ??????? ?? ?????? ???? ???? ?????? ??????. (???? ???? # 2 ?? ????? ???????? ???????? ?????).
  3. ????? ????? ???? ?????? ???? ???????. (???? ???? # 3 ?? ????? ???????? ???????? ?????).
  4. ?? ?????? ??? ?????? ??????? ??????? ?????? ????????? (C++) ??????. ???? ????? ??? ?????? ????? /GX (????????? Visual Studio) ?? ?????? ???????. (???? ???? # 4 ?? ????? ???????? ???????? ?????).
???? # 1 ?? ???? ???????? ???? ???? ???.

??????: ??? ??? ?????? ???? ???? ??? ??? ????? ???? ????? (???? ??????? =).

?????

???? Microsoft ?? ??? ??? ?? Microsoft ???????? ??????? ?? ????? ??? ???????.

?? ????? ??? ??????? ?? Visual C++ Microsoft .NET.

??????? ????

////////////////////////////////////////////////////////////////////// 
// cl /c /GX test.cpp
// 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
////////////////////////////////////////////////////////////////////// 
class A
{
  public:
    /* workaround #1, add an explicit copy constructor to class A */ 
    // A(A& a) {};
    ~A() {}; 
};
class B
{
  public:
 /* workaround #2, remove virtual keyword from B::GetA */ 
    virtual A& GetA(void);
    void Func (void);
};
void B::Func (void)
{
  A *att;
  att=new A(GetA());
  /* workaround #3, substitute the above line with the following two lines */ 
  //A tmp = GetA();
  //att=new A(tmp);
}
/* workaround #4, remove /GX compiler option */ 
				

???????

???? ???????: 226110 - ????? ??? ??????: 23/???? ??????/1435 - ??????: 3.0
????? ???
  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
????? ??????: 
kbnosurvey kbarchive kbmt kbtshoot kberrmsg kbbug kbcompiler kbfix kbnoupdate KB226110 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????226110

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com