From 19170badd38655f77b84da8a2cdbd7b0cb9f3bb0 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 15 Sep 2024 11:05:48 -0400 Subject: [PATCH] Fix warning IEEE reference (#5453) --- src/V3Width.cpp | 2 +- test_regress/t/t_struct_packed_init_bad.out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index e2e6f18a5..0e6215645 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -2784,7 +2784,7 @@ class WidthVisitor final : public VNVisitor { << " in packed struct/union (IEEE 1800-2023 7.2.1)"); if ((VN_IS(nodep, UnionDType) || nodep->packed()) && itemp->valuep()) { itemp->v3error("Initial values not allowed in packed struct/union" - " (IEEE 1800-2023 7.2.1)"); + " (IEEE 1800-2023 7.2.2)"); pushDeletep(itemp->valuep()->unlinkFrBack()); } else if (itemp->valuep()) { itemp->valuep()->v3warn(E_UNSUPPORTED, diff --git a/test_regress/t/t_struct_packed_init_bad.out b/test_regress/t/t_struct_packed_init_bad.out index 69e79b04c..19bfd9d0d 100644 --- a/test_regress/t/t_struct_packed_init_bad.out +++ b/test_regress/t/t_struct_packed_init_bad.out @@ -1,4 +1,4 @@ -%Error: t/t_struct_packed_init_bad.v:12:17: Initial values not allowed in packed struct/union (IEEE 1800-2023 7.2.1) +%Error: t/t_struct_packed_init_bad.v:12:17: Initial values not allowed in packed struct/union (IEEE 1800-2023 7.2.2) : ... note: In instance 't' 12 | bit [3:0] m_lo = P; | ^~~~