
4 Aug
2009
4 Aug
'09
2:40 a.m.
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().