Boost logo

Boost Users :

From: Sebastian Weber (sebastian.weber_at_[hidden])
Date: 2008-04-07 10:49:26


Hi!

Aaaahrg, it was actually a problem of objects going out of scope at some
other place.

Sorry, for suspecting a Bug and thanks a lot for your effort.

Greetings,

Sebastian Weber

On Mon, 2008-04-07 at 17:05 +0300, Peter Dimov wrote:
> Sebastian Weber:
>
> > Hi Peter!
> >
> > bind_test passes for my compiler. I actually cannot sent you a senseful
> > backtrace, since the compilation in debugging mode always yields a
> > executable which works as it should (even though optimizations are on).
> > Only compiling in release mode with -Ox x>0 yields a crashing
> > executable. Seems like a gcc bug to me, but I thought some Problems like
> > this are known. Attached is the affected code.
>
> Nothing wrong with the code... You could try removing the "const" from the
> const key_type k in the declaration of undo_put. Another thing I see is that
> your commented-out detail::undo_put stores the property map by value,
> whereas the bind expression uses ref(rpa). Could this make a difference? Is
> it possible that the undo action is executed after rpa has been destroyed?
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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