gcc2.95.2 fails on linux and solaris - exhausts virtual memory

Kit Smithers ksmithers@argogroup.com
Tue Oct 10 03:30:00 GMT 2000

The following code fails to build with gcc2.95.2

Seems to be a result of all the "sss" + string("sss") + "sss" in the code.

g++ -v --save-temps -c  -Wall -pipe -Werror -Wtraditional -Wpointer-arith -W
write-strings -Wconversion -Wnested-externs -Wstrict-prototypes -Wmissing-pr
ototypes -Wmissing-declarations -Woverloaded-virtual -O2 -o kak.o   kak.cpp
g++: Warning: -pipe ignored since -save-temps specified
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)

/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cpp -lang-c++ -v -D__GNUC__=
2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__
 -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asy
stem(posix) -D__EXCEPTIONS -D__OPTIMIZE__ -Wall -Werror -Wtraditional -Wpoin
ter-arith -Wwrite-strings -Wconversion -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-declarations -Woverloaded-virtual -Acpu(i386)
 -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D_
_i686__ -D__pentiumpro -D__pentiumpro__ kak.cpp kak.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:

End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
kak.ii -quiet -dumpbase
kak.cc -O2 -Wall -Werror -Wtraditional -Wpointer-arith -Wwrite-strings -Wcon
version -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wmissing-
declarations -Woverloaded-virtual -version -o kak.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by
GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
kak.cpp: In function `static void CBridgeFallsDownInstance::Test()':
kak.cpp:370: virtual memory exhausted

it also fails on solaris :
GNU CPP version 2.95.2 19991024 (release) (sparc)

with same options
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kak.ii.gz
Type: application/x-gzip
Size: 23089 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001010/2c636164/attachment.bin>

More information about the Gcc-bugs mailing list