From db118f487f57aa0fda1e7b0a7a11a94cbd740348 Mon Sep 17 00:00:00 2001 From: Chykon Date: Mon, 19 Feb 2024 17:59:50 +0000 Subject: [PATCH] Fix processing order --- src/V3ParseImp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3ParseImp.cpp b/src/V3ParseImp.cpp index 2bd9bbab1..d88be5e0a 100644 --- a/src/V3ParseImp.cpp +++ b/src/V3ParseImp.cpp @@ -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;