https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112923
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 56992 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56992&action=edit Tiny example code showing the problem The attached source will compile but consumes vast amounts of ram. $ time gm2 -g -c Blowup.mod takes 43 secs on a amd64 3.6 GHz box and about 6GB ram. The M2Diagnostic module will generate resource data and will be called when -fmem-report or -ftime-report is issued.