$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [Serialization] Bizarre bug
From: Jarl Lindrud (jarl.lindrud_at_[hidden])
Date: 2009-08-03 22:40:47
troy d. straszheim <troy <at> resophonic.com> writes:
>
> Looks like UB to me. From the C++ standard:
>
> Note: in particular, a null reference cannot exist in a well-defined
> program, because the only way to create such a reference would be to
> bind it to the "object" obtained by dereferencing a null pointer,
> which causes undefined behavior. (§ 8.3.2, ¶ 4)
>
The dummy() function never even gets executed. The point is that the mere
compile-time presence of a particular line in it, causes a deserialization
error in main().