From b56a25e89cb1ddb9486db80988e78182ea3d3e68 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 7 May 2020 18:21:02 -0400 Subject: [PATCH] Fix newish error to use standard parens to ref IEEE. --- src/V3Width.cpp | 6 +++--- test_regress/t/t_timing_func_bad.out | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 51a9922db..382160da3 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -540,13 +540,13 @@ private: } virtual void visit(AstDelay* nodep) VL_OVERRIDE { 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); return; } if (VN_IS(m_ftaskp, Func)) { - nodep->v3error("Delays are not legal in functions. Suggest use a task. " - "IEEE 1800-2017 13.4.4"); + nodep->v3error("Delays are not legal in functions. Suggest use a task " + "(IEEE 1800-2017 13.4.4)"); VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep); return; } diff --git a/test_regress/t/t_timing_func_bad.out b/test_regress/t/t_timing_func_bad.out index 681f70631..978f09039 100644 --- a/test_regress/t/t_timing_func_bad.out +++ b/test_regress/t/t_timing_func_bad.out @@ -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 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 23 | #1; | ^