[Bug c++/77844] New: Compilation of simple C++ example exhaust memory
graeser at mi dot fu-berlin.de
gcc-bugzilla@gcc.gnu.org
Tue Oct 4 15:02:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77844
Bug ID: 77844
Summary: Compilation of simple C++ example exhaust memory
Product: gcc
Version: 4.9.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: graeser at mi dot fu-berlin.de
Target Milestone: ---
Created attachment 39750
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39750&action=edit
Compiling with 'g++-4.9 -O -g' triggers the problem.
When trying to compile the attached example with 'g++-4.9 -O -g' compilation
does not terminate and memory usage grows slowly. I terminated compilation when
gcc used more than 14gb of memory.
Notice that the issue is not triggered if one level of indirection is removed,
e.g., if the body of test() is copied into main().
More information about the Gcc-bugs
mailing list