Title: | Microsoft Visual C++ bug reports and kits |
Notice: | Register in Topic 2. 5.Last for latest Kit |
Moderator: | DECWET::THOMAS N |
Created: | Tue May 17 1994 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 521 |
Total number of notes: | 2938 |
Hello, I have a compiler problem with VC50/Alpha (11.01.7057) c2: Fatal: There has been an internal compiler error (C0000005) Please report this, along ... This error does not appear when I compile this source with VC42. I prepared a testcase to reproduce the error. The file is on sapec3::hjb.zip (Executor node = 49.816 (SAPEC3)) Into the zipfile there is a compile.bat which include the compiler statement. Thanks & Bye HJ Bachofer DEC/SAP Engineering Walldorf/Germany
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
498.1 | reduced test case | DECCXL::OUELLETTE | temerity time | Fri Apr 18 1997 17:33 | 29 |
class CMemoryException; class CString { public: CString(const char *lpsz); CString(const unsigned char* psz); ~CString(); // dtor required }; class COsException { public: COsException(const CString& Text); private: unsigned long m_OsError; }; extern goo(void); void foo(void) { try { goo(); } catch (CMemoryException) { throw new COsException("oops!"); } } | |||||
498.2 | DECCXL::OUELLETTE | temerity time | Fri Apr 18 1997 17:42 | 15 | |
The original ticklish code is in CDbBase::CopyInitFile. The problematic code winds up looking something like: // was ... CDbBase::CopyInitFile void foo(void) { CString Line; try { Line.GetBuffer(5000+1); } catch (CMemoryException) { throw new COsException("oops!", 3); } } | |||||
498.3 | handed off to GEM | DECC::OUELLETTE | temerity time | Mon Apr 21 1997 15:15 | 1 |
Logged as GEM_BUGS #6103. | |||||
498.4 | Fixed for SP1 | DECWET::sdtwst.zso.dec.com::hutchinson | Eliminating the need for cleverness | Tue Apr 22 1997 17:45 | 13 |
It seems that the conditional constructor for the following line throw new COsException("oops!", 3); wasn't placed in the correct scope. A fix is in the offing. This will be fixed in the VC++ 5.0 SP1, coming out around the end of May. In the meantime, I hope that we've provided enough information so that you can find a workaround. Thank you, Phil | |||||
498.5 | internal compiler error (C0000005) | SAPEC3::BACHOFER | Wed Apr 23 1997 02:10 | 4 | |
Thanks all. -HJB- |