Update of /cvsroot/cpptool/rfta/bug
In directory sc8-pr-cvs1:/tmp/cvs-serv4000/bug
Added Files:
LocaleVariableNotRecognized.cpp ParserCrash.cpp
Log Message:
* added bug samples
--- NEW FILE: LocaleVariableNotRecognized.cpp ---
// Fails to recognize the last occurrence of bigBuffer as a local variable
{
std::vector<int> bigBuffer;
{
KTEST_ASSERT_EQUAL( index, bigBuffer[index] );
}
}
--- NEW FILE: ParserCrash.cpp ---
// Crash when trying to rename the last occurrence of bigBuffer. (from the add-in, seems to be in the IdentifierResolver).
{
const int bufferSize = 256000;
std::vector<int> bigBuffer;
bigBuffer.reserve( bufferSize );
for ( int index =0; index < bufferSize; ++index )
bigBuffer[ index ] = 0;
const char *byteBuffer = (char *)&bigBuffer[0];
int recievedLength = 0;
int totalLength = sizeof(int) * bufferSize;
KTEST_ASSERT_EQUAL( index, bigBuffer[index] );
}
|