http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53846
Bug #: 53846 Summary: [c++11] memory exhaustion on simple recursive function template that uses decltype Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: eric.nieb...@gmail.com Created attachment 27738 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27738 g++ -std=gnu++11 -c test_eric2.cpp The attached code, compiled with -std=gnu++11, causes the compiler to exhaust the heap. With fewer arguments to the back() function it succeeds, but quickly runs into compile time troubles.