https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98354
Bug ID: 98354 Summary: OOM: cc1plus: out of memory with operator auto Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Seems to be very old : $ cat z1.cc struct S { operator auto () { return [] }; }; $ g++-11-20201213 -c z1.cc -std=c++17 z1.cc: In lambda function: z1.cc:3:32: error: expected '{' before '}' token 3 | operator auto () { return [] }; | ^ cc1plus: out of memory allocating 96299408 bytes after a total of 737280 bytes