Boost logo

Boost Users :

Subject: Re: [Boost-users] [Function][Bind] Strange problem with g++ 4.5
From: Peter Dimov (pdimov_at_[hidden])
Date: 2010-05-17 09:01:19


Maxime van Noppen:
> On 05/17/2010 10:05 AM, Maxime van Noppen wrote:
>> On 05/15/2010 09:18 PM, Peter Dimov wrote:
>>> I think that this sounds very much like an optimizer bug and the way to
>>> understand what's going on is to submit a bug report to the GCC
>>> bugzilla. It could, in principle, be an aliasing violation issue in
>>> boost::function, but I doubt it. g++ since 4.4 is getting more
>>> aggressive with its aliasing assumptions when optimizing.
>>
>> Ouch. I'll report to GCC then.
>>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44164

Thanks. I'm trying to retrieve the password for my Bugzilla account - with
no luck so far. You may want to relay to Richard that after stepping through
the code, it turns out that function_buffer is indeed assigned directly, due
to the fact that __has_trivial_copy and __has_trivial_destructor report true
for the stored function object.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net