diff --git a/src/V3ParseImp.cpp b/src/V3ParseImp.cpp index d88be5e0a..397443eed 100644 --- a/src/V3ParseImp.cpp +++ b/src/V3ParseImp.cpp @@ -625,8 +625,8 @@ void V3ParseImp::tokenPipelineSym() { v3Global.setUsesStdPackage(); } else if (token == yaID__CC) { if (VN_IS(scp, Module) || VN_IS(scp, Iface)) { - yylval.fl->v3error(scp->typeName() << " cannot be the left operand of a " - "scope resolution operator (IEEE 1800-2017 8.23)"); + yylval.fl->v3error(scp->prettyTypeName() << " cannot be the left operand of " + "a scope resolution operator (IEEE 1800-2017 8.23)"); } } } else { // Not found diff --git a/test_regress/t/t_scope_resolution_op_bad.out b/test_regress/t/t_scope_resolution_op_bad.out index 8179901fc..2f708b978 100644 --- a/test_regress/t/t_scope_resolution_op_bad.out +++ b/test_regress/t/t_scope_resolution_op_bad.out @@ -1,7 +1,7 @@ -%Error: t/t_scope_resolution_op_bad.v:14:34: MODULE cannot be the left operand of a scope resolution operator (IEEE 1800-2017 8.23) +%Error: t/t_scope_resolution_op_bad.v:14:34: MODULE 'mod' cannot be the left operand of a scope resolution operator (IEEE 1800-2017 8.23) 14 | localparam integer MOD_PARAM = mod::PARAM; | ^~~ -%Error: t/t_scope_resolution_op_bad.v:15:33: IFACE cannot be the left operand of a scope resolution operator (IEEE 1800-2017 8.23) +%Error: t/t_scope_resolution_op_bad.v:15:33: IFACE 'mod_if' cannot be the left operand of a scope resolution operator (IEEE 1800-2017 8.23) 15 | localparam integer IF_PARAM = mod_if::PARAM; | ^~~~~~ %Error: Exiting due to