nested template bug
Mark Mitchell
mmitchell@usa.net
Sun Jan 4 14:49:00 GMT 1998
>>>>> "Thomas" == Thomas Kunert <kunert@Ptprs1.phy.tu-dresden.de> writes:
Thomas> Hi, the following testcase
Thomas> #include <vector> vector<vector<vector<vector<double> > >
Thomas> > a;
A patch I submitted, and which is in the latest snaphots, fixes this
problem.
Thomas> [tom@ptpp09 dichte]# g++ -c test.cc -ftemplate-depth-20
Thomas> [tom@ptpp09 dichte]# g++ -c test.cc -ftemplate-depth-20 -O
Thomas> test.cc: In function `(static destructors for test.cc)':
Thomas> test.cc:5: virtual memory exhausted [tom@ptpp09 dichte]#
Thomas> g++ -v Reading specs from
Thomas> /usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.23/specs
Thomas> gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
Thomas> [tom@ptpp09 dichte]# free total used free shared buffers
Thomas> cached Mem: 63528 8776 54752 3124 172 3156 -/+
Thomas> buffers/cache: 5448 58080 Swap: 116892 28328 88564
Thomas> [tom@ptpp09 dichte]#
Thomas> I think, 140 MB free memory should be enough.
Thomas> Thomas Kunert
--
Mark Mitchell mmitchell@usa.net
Stanford University http://www.stanford.edu
More information about the Gcc
mailing list