Compiling the attached file with '-fno-enforce-eh-specs -O2' on a 450MHz G4 with gcc 3.4 takes 30 seconds. Compiling it with gcc 4 on a 1.3GHz G4 takes a number of hours before failing: cc1plus: out of memory allocating 1643995136 bytes after a total of 94982144 bytes
This are both 64-bit-capable toolchains, defaulting to 32-bit output. (Fedora Core 3 and Fedora Core 4 respectively, on PPC). -- Summary: 4.0 regression: excessive compiler resource usage Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: critical Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dwmw2 at infradead dot org CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: ppc-redhat-linux GCC target triplet: ppc64-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20826