I have a very small program which will not compile. I was wondering if
i was doing something that violated the c++ standard itself. (for
those interested, I am using g++ 3.4.3)
This program will not compile: (Internal ERROR : Segmentation Fault)
(#include<vectorfor all of the following)
class myClass
{
std::vector<floatm_buffer[75000];
};
int main()
{
//NOTHING
}
// But this one will:
int main()
{
// I can increase this size hugely without problem, so memory is not
the issue here.
std::vector<floatm_buffer[75000];
}
This one also works fine:
class myClass
{
std::vector<floatm_buffer;
};
int main()
{
myClass obj[75000]; // Which seems to be equivalent to the first
program
}
Should the first program compile ?