[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::visual

Title:Microsoft Visual C++ bug reports and kits
Notice:Register in Topic 2. 5.Last for latest Kit
Moderator:DECWET::THOMASN
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

498.0. "internal compiler error (C0000005)" by SAPEC3::BACHOFER () Fri Apr 18 1997 04:13

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.RTitleUserPersonal
Name
DateLines
498.1reduced test caseDECCXL::OUELLETTEtemerity timeFri Apr 18 1997 17:3329
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.2DECCXL::OUELLETTEtemerity timeFri Apr 18 1997 17:4215
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.3handed off to GEMDECC::OUELLETTEtemerity timeMon Apr 21 1997 15:151
Logged as GEM_BUGS #6103.
498.4Fixed for SP1DECWET::sdtwst.zso.dec.com::hutchinsonEliminating the need for clevernessTue Apr 22 1997 17:4513
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.5internal compiler error (C0000005)SAPEC3::BACHOFERWed Apr 23 1997 02:104
Thanks all.


  -HJB-