Fix processing order

This commit is contained in:
Chykon 2024-02-19 17:59:50 +00:00
parent 4f41148db0
commit db118f487f

View File

@ -621,13 +621,13 @@ void V3ParseImp::tokenPipelineSym() {
} else {
token = yaID__ETC;
}
} else if (!m_afterColonColon && *(yylval.strp) == "std") {
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)");
}
} else if (!m_afterColonColon && *(yylval.strp) == "std") {
v3Global.setUsesStdPackage();
}
} else { // Not found
yylval.scp = nullptr;