Ah, well. It was a code problem. The function
inline Chained::Element*
Chained::headOf() const
{
(Element*) Linked::headOf();
}
doesn't return a value so the result is random.
But isn't it a fatal error for a function not to return a value in C++?