This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype
- From: "eric.niebler at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Jul 2012 20:35:47 +0000
- Subject: [Bug c++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: eric.niebler@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.