[Bug libstdc++/37721] Segmentation fault
ivranos at freemail dot gr
gcc-bugzilla@gcc.gnu.org
Fri Oct 3 11:56:00 GMT 2008
------- Comment #17 from ivranos at freemail dot gr 2008-10-03 11:55 -------
The bug occurs in this simpler code too:
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <vector>
#include <limits>
int main()
{
using namespace std;
vector<int> intVector(1000*1000);
srand(time(0));
for(size_t i= 0; i< numeric_limits<size_t>::max()/2; ++i)
{
for (vector<int>::size_type j= 0; i< intVector.size(); ++j)
intVector[j]= rand();
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37721
More information about the Gcc-bugs
mailing list