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++/77844] New: Compilation of simple C++ example exhaust memory


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().

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