-O2 -Wall give virtual memory exhausted
Yotam Medini
yotamm@tmai.com
Thu Dec 4 15:16:00 GMT 1997
Small example that gives: virtual memory exhausted
Note: Without -O2 or -Wall compilation passes!
-- yotam
------------------------------------------------------------------------
schwinger:50> uname -sr; egcs++ -v
SunOS 5.5.1
Reading specs from /home/seg/yotam/build/dryinst.Solaris/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.90.20/specs
gcc version egcs-2.90.20 971201 (gcc2-970802 experimental)
schwinger:51> cat bv.cc
#include <vector>
class C
{
public:
C();
virtual ~C() {};
private:
vector< vector<vector<unsigned> > > _vvvu;
};
schwinger:52> egcs++ -c -O2 -Wall bv.cc
/home/seg/yotam/build/dryinst.Solaris/include/g++/stl_construct.h: In function `void destroy<vector<vector<unsigned int,__default_alloc_template<false,0> >,__default_alloc_template<false,0> > *>(class vector<vector<unsigned int,__default_alloc_template<false,0> >,__default_alloc_template<false,0> > *, class vector<vector<unsigned int,__default_alloc_template<false,0> >,__default_alloc_template<false,0> > *)':
/home/seg/yotam/build/dryinst.Solaris/include/g++/stl_construct.h:66: virtual memory exhausted
schwinger:53>
More information about the Gcc-bugs
mailing list