Why is it ill-defined? As you said, there's no contradiction.
Also, in the usual ZF set theory, it's empty.
Also, in the usual ZF set theory, it's empty.
The axioms of ZF do not allow to form that expression, so the set doesn’t exist in ZF.
(*) This is from a universist view. In a pluralist view, one wouldn’t say that the fact of the matter of whether D contains itself or not is independent from naive set theory, and that there are set universes where it is the case and others where it isn’t. But I would hold that naive set theory starts from a universist view.