diff --git a/compiler2/Type.cc b/compiler2/Type.cc
index b5bd3e1c44f08f71cc5f0509a2aafb5f73b7cabc..cb3d27a6fc813d3b923e516cb8199f201ea3d5d6 100644
--- a/compiler2/Type.cc
+++ b/compiler2/Type.cc
@@ -7414,7 +7414,7 @@ namespace Common {
       if (t->is_tagged() || t->rawattrib || t->textattrib || t->jsonattrib ||
           (!t->is_asn1() && t->hasEncodeAttr(get_encoding_name(CT_JSON))) ||
           (t->xerattrib && !t->xerattrib->empty() ) ||
-          (t->oerattrib && !t->oerattrib->empty() && t->is_asn1()))
+          (t->oerattrib /*&& !t->oerattrib->empty()*/ && t->is_asn1()))
       {
         return t->get_genname_own(p_scope);
       }