https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71508

            Bug ID: 71508
           Summary: Huge memory usage on compiling with many types
           Product: gcc
           Version: 6.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: olarupaulstelian97+bugzilla at gmail dot com
  Target Milestone: ---

The code at
https://github.com/wkaras/C-plus-plus-library-bit-fields/tree/b5e1b4b420f2676a9bef9ce630ef86995911ca9d
causes G++ to use up more than 3GB of RAM (on my machine I could not determine
exactly how much).

The code creates a huge number of types, however there are other compilers that
handle it more graciously (I have managed to compile the code with CLang++ and
it only used 1.4 GB of RAM when I tried it)

Why the older version? That's what my Arch Linux running kernel 4.6.2-1-ARCH
x86_64 provides in its official repositories.

Reply via email to