Remove R-value class check until class variables are found correctly
This commit is contained in:
parent
f4c79f5629
commit
34d7be092e
|
|
@ -858,12 +858,16 @@ static NetExpr* do_elab_and_eval(Design*des, NetScope*scope, PExpr*pe,
|
||||||
|
|
||||||
pe->test_width(des, scope, mode);
|
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) {
|
if (pe->expr_type() == IVL_VT_CLASS) {
|
||||||
cerr << pe->get_fileline() << ": Error: "
|
cerr << pe->get_fileline() << ": Error: "
|
||||||
<< "Class/null r-value not allowed in this context." << endl;
|
<< "Class/null r-value not allowed in this context." << endl;
|
||||||
des->errors += 1;
|
des->errors += 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Get the final expression width. If the expression is unsized,
|
// Get the final expression width. If the expression is unsized,
|
||||||
// this may be different from the value returned by test_width().
|
// this may be different from the value returned by test_width().
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue