diff --git a/netmisc.cc b/netmisc.cc index e4e96119f..ddee9bdd6 100644 --- a/netmisc.cc +++ b/netmisc.cc @@ -858,12 +858,16 @@ static NetExpr* do_elab_and_eval(Design*des, NetScope*scope, PExpr*pe, pe->test_width(des, scope, mode); + // FIXME: A class variable/array inside a class is not + // reported correctly so this cannot be used. +#if 0 if (pe->expr_type() == IVL_VT_CLASS) { cerr << pe->get_fileline() << ": Error: " << "Class/null r-value not allowed in this context." << endl; des->errors += 1; return 0; } +#endif // Get the final expression width. If the expression is unsized, // this may be different from the value returned by test_width().