I seem to have run across a g++ 3.4.3 Bug.  Does anyone know the
details (I was unable to find this bug in the gnu bug tracker)

This program will not compile:  (Internal ERROR : Segmentation Fault)

(#include<vector> for all of the above)

class myClass
{
std::vector<float> m_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<float> m_buffer[75000];
}

This one also works fine:
class myClass
{
std::vector<float> m_buffer;
};
int main()
{
myClass obj[75000]; // Which seems to be equivalent to the first
program
}

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to