|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2006-08-20 20:42:17
After a cursory examination, I'm inclined to suspect this is a
manifestation of a compiler bug. Could someone check this
with another compiler?
Robert Ramey
Jarl Lindrud wrote:
> Felipe Magno de Almeida <felipe.m.almeida <at> gmail.com> writes:
>
>>
>> On 8/19/06, Jarl Lindrud <jlindrud <at> hotmail.com> wrote:
>>>
>>> Hi,
>>>
>>> RCF, a C++ middleware framework, supports using Boost Serialization
>>> for serialization of data structures. One of my user's reported a
>>> serialization bug to me, which I finally boiled down into the
>>> following piece of code:
>>
>> Why there is so many dereferencing of null pointers in the example?
>> Aren't such code illegal and relying in undefined behavior?
>>
>
> The compiler doesn't care about derefencing of null pointers, that's
> a runtime issue. The point is that the bug is being triggered by code
> that is never executed.
>
> Regards,
> Jarl.
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk