help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New g++ 3.4.3 Bug ?


From: joseph cook
Subject: New g++ 3.4.3 Bug ?
Date: 15 Jan 2007 09:31:57 -0800
User-agent: G2/1.0

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
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]