From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Lawson To: egcs@cygnus.com, law@cygnus.com, jason@cygnus.com Subject: Re: Continued: egcs-971201: testsuite results for i586-pc-linux-gnulibc1 Date: Wed, 03 Dec 1997 05:46:00 -0000 Message-id: <9712031346.AA10496@drfmc.ceng.cea.fr> X-SW-Source: 1997-12/msg00175.html > From jason@cygnus.com Wed Dec 3 03:09 MET 1997 > > >>>>> Max Lawson writes: > > > $g++ -Wall -O test.cc > > test.cc: In function `int main()': > > test.cc:10: virtual memory exhausted > > As I said before, you need to add -Wno-return-type or the old memory > explosion bug resurfaces. This is a known bug. The problem is that > save_for_inline_copying wastes a ridiculous amount of memory in the > presence of recursive function definitions, which you get with templates. > With -Wno-return-type, we don't need to use save_for_inline_copying. I do not need to use any warning flag to obtain memory explosion. The -Wno-return-type flag indeed solve the posted testcase problem, but can't help. I am now aware that my problem is mentioned in the first part of the online faq (subject: virtual memory error). But what's called a large file ? And how to simplify files ? In order to use template one has to merge header and source files .... Thanx for the answers, Max.