mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
Update error message
This commit is contained in:
parent
db118f487f
commit
c174330c81
@ -625,8 +625,8 @@ void V3ParseImp::tokenPipelineSym() {
|
|||||||
v3Global.setUsesStdPackage();
|
v3Global.setUsesStdPackage();
|
||||||
} else if (token == yaID__CC) {
|
} else if (token == yaID__CC) {
|
||||||
if (VN_IS(scp, Module) || VN_IS(scp, Iface)) {
|
if (VN_IS(scp, Module) || VN_IS(scp, Iface)) {
|
||||||
yylval.fl->v3error(scp->typeName() << " cannot be the left operand of a "
|
yylval.fl->v3error(scp->prettyTypeName() << " cannot be the left operand of "
|
||||||
"scope resolution operator (IEEE 1800-2017 8.23)");
|
"a scope resolution operator (IEEE 1800-2017 8.23)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else { // Not found
|
} else { // Not found
|
||||||
|
@ -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;
|
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;
|
15 | localparam integer IF_PARAM = mod_if::PARAM;
|
||||||
| ^~~~~~
|
| ^~~~~~
|
||||||
%Error: Exiting due to
|
%Error: Exiting due to
|
||||||
|
Loading…
Reference in New Issue
Block a user