Internal Compiler Error

  • Thread starter Thread starter Gabriel Becedillas
  • Start date Start date
G

Gabriel Becedillas

Hi,
I hit an internal compiler error. I could reproduce it with this code
both in Visual Studio 2005 and 2008.

#include <vector>

int main()
{
std::vector<unsigned char> alldata;
char* p = new [alldata.size()]; // The type is missing!
return 0;
}
 
I hit an internal compiler error. I could reproduce it with this code
both in Visual Studio 2005 and 2008.

#include <vector>

int main()
{
std::vector<unsigned char> alldata;
char* p = new [alldata.size()]; // The type is missing!
return 0;
}

FWIW, I can also repro with VS2008, however VS2010 RC reports:

error C2059: syntax error : '['

Dave
 
Back
Top