nested template bug
Thomas Kunert
kunert@Ptprs1.phy.tu-dresden.de
Sun Jan 4 08:57:00 GMT 1998
Hi,
the following testcase
#include <vector>
vector<vector<vector<vector<double> > > > a;
gives
[tom@ptpp09 dichte]# g++ -c test.cc -ftemplate-depth-20
[tom@ptpp09 dichte]# g++ -c test.cc -ftemplate-depth-20 -O
test.cc: In function `(static destructors for test.cc)':
test.cc:5: virtual memory exhausted
[tom@ptpp09 dichte]# g++ -v
Reading specs from
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
[tom@ptpp09 dichte]# free
total used free shared buffers
cached
Mem: 63528 8776 54752 3124 172
3156
-/+ buffers/cache: 5448 58080
Swap: 116892 28328 88564
[tom@ptpp09 dichte]#
I think, 140 MB free memory should be enough.
Thomas Kunert
More information about the Gcc
mailing list