Internal Compiler Error

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;
}
 
D

David Lowndes

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top