https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92442
Bug ID: 92442 Summary: Compiling Boost.Spirit.X3 code uses exuberant amount of RAM Product: gcc Version: 9.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vanboxem.ruben at gmail dot com Target Milestone: --- Created attachment 47207 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47207&action=edit preprocessed source for reproduction Compiling the attached preprocessed code like this: g++ -pedantic-errors -Wextra -Wconversion -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Werror -ffunction-sections -fdata-sections -gsplit-dwarf -g -fPIE -std=c++17 -MD -MT test.o test.ii consumes a peak amount of 7227,6 MB of RAM. Subsequent assembler call uses 2283 MB of RAM. Clang 9 uses 4941 MB of RAM, which is also quite a lot, but almost 2 GB less.