Fix newish error to use standard parens to ref IEEE.
This commit is contained in:
parent
4f32b093e6
commit
b56a25e89c
|
|
@ -540,13 +540,13 @@ private:
|
||||||
}
|
}
|
||||||
virtual void visit(AstDelay* nodep) VL_OVERRIDE {
|
virtual void visit(AstDelay* nodep) VL_OVERRIDE {
|
||||||
if (VN_IS(m_procedurep, Final)) {
|
if (VN_IS(m_procedurep, Final)) {
|
||||||
nodep->v3error("Delays are not legal in final blocks. IEEE 1800-2017 9.2.3");
|
nodep->v3error("Delays are not legal in final blocks (IEEE 1800-2017 9.2.3)");
|
||||||
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
|
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (VN_IS(m_ftaskp, Func)) {
|
if (VN_IS(m_ftaskp, Func)) {
|
||||||
nodep->v3error("Delays are not legal in functions. Suggest use a task. "
|
nodep->v3error("Delays are not legal in functions. Suggest use a task "
|
||||||
"IEEE 1800-2017 13.4.4");
|
"(IEEE 1800-2017 13.4.4)");
|
||||||
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
|
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
%Error: t/t_timing_func_bad.v:10:8: Delays are not legal in functions. Suggest use a task. IEEE 1800-2017 13.4.4
|
%Error: t/t_timing_func_bad.v:10:8: Delays are not legal in functions. Suggest use a task (IEEE 1800-2017 13.4.4)
|
||||||
: ... In instance t
|
: ... In instance t
|
||||||
10 | #1 $stop;
|
10 | #1 $stop;
|
||||||
| ^
|
| ^
|
||||||
%Error: t/t_timing_func_bad.v:23:8: Delays are not legal in final blocks. IEEE 1800-2017 9.2.3
|
%Error: t/t_timing_func_bad.v:23:8: Delays are not legal in final blocks (IEEE 1800-2017 9.2.3)
|
||||||
: ... In instance t
|
: ... In instance t
|
||||||
23 | #1;
|
23 | #1;
|
||||||
| ^
|
| ^
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue