This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11282] [3.3 regression] Infinite memory usage after syntax error


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11282



------- Additional Comments From ghost at cs dot msu dot su  2003-06-30 10:14 -------
I've just run into very similiar problem. The code with cause 3.2 to produce 
error message, causes 3.3 to eat all virtual memory.  
 
g++ version is: 
 
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs 
Configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib 
--enable-nls --without-included-gettext --enable-__cxa_atexit 
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm 
--enable-java-awt=xlib --enable-objc-gc i386-linux 
Thread model: posix 
gcc version 3.3 (Debian) 
 
The complete command was: 
g++-3.3 -save-temps -x c++ -Wall -ftemplate-depth-100 -O0 -fno-inline -g  
-DDEBUG_CFG  -I"." -I".." -I"../../lib" -I"../../lib/nstl" -I"../cpp_mark" 
-I"/space/NM/boost" -I"/space/NM/boost-sandbox" 
-I"bin/gcc/debug/main-target-nm_asm_analysis" 
-I"bin/gcc/debug/main-target-nm_asm" 
-I"../cpp_mark/bin/gcc/debug/main-target-cpp_lite" -I"bin/gcc/debug" 
-I"../cpp_mark/bin/gcc/debug"  -c -o 
"bin/gcc/debug/main-target-nm_asm_analysis/instruction_instance.o"  "xxx.cpp" 
virtual memory exhausted: Cannot allocate memory 
 
The offending line from xxx.cpp file is  
        visit(const Whale::NonterminalNonsense____LiteralExpression& t); 
where there's no such class in namespace Whale. 
 
I'm attaching the preprocessed file.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]