
On 7/3/2012 12:18 PM, Nathan Ridge wrote:
With GCC 4.7.0, no optimization
[snip]
Eric: Exhausts all my ram (8 GB) after 24.27 seconds
With -O3
[snip]
Eric: Exhausts all my ram (8 GB) after 25.07 seconds
You may want to report that as a GCC bug.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53846
I experienced similar symptoms when reporting PR52748 [1], it could well be the same root cause.
Regards, Nate
This is not likely to be the same bug. N3276 is about decltype causing the recursive instantiation of a class template -- unconditionally. In this case, a call to the back function succeeds if you pass fewer parameters, but fails with more. Seems to merely indicate an inefficient algorithm, not a fundamental problem. -- Eric Niebler BoostPro Computing http://www.boostpro.com