Boost logo

Boost :

Subject: Re: [boost] [offtopic] C++11 useful trick
From: Eric Niebler (eric_at_[hidden])
Date: 2012-07-03 16:42:24


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
>
> [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748

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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk