This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77844] New: Compilation of simple C++ example exhaust memory
- From: "graeser at mi dot fu-berlin.de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Oct 2016 15:02:07 +0000
- Subject: [Bug c++/77844] New: Compilation of simple C++ example exhaust memory
- Auto-submitted: auto-generated
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().