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; | ^~~~