I killed gcc after it used >100 MB of RAM for this example: template<typename T> int foo (T t, int = foo(T()));
int main() { foo(0); } -- Summary: recursive default arguments cause compiler out-of-memory Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jens dot maurer at gmx dot net GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24247