Makes it explicit that the default value is set to NULL. gcc/d/ChangeLog:
* typeinfo.cc (TypeInfoVisitor::visit (TypeInfoClassDeclaration *)): Always layout initializer for the m_RTInfo field. --- gcc/d/typeinfo.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/d/typeinfo.cc b/gcc/d/typeinfo.cc index c9126f4c6b5..978c73e65f6 100644 --- a/gcc/d/typeinfo.cc +++ b/gcc/d/typeinfo.cc @@ -934,6 +934,8 @@ public: this->layout_field (build_expr (cd->getRTInfo, true)); else if (!(flags & ClassFlags::noPointers)) this->layout_field (size_one_node); + else + this->layout_field (null_pointer_node); } else { -- 2.30.2