Update error message

This commit is contained in:
Chykon 2024-02-20 18:14:02 +00:00
parent db118f487f
commit c174330c81
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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