mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 18:58:51 +02:00
Fix randomize treated as std::randomize in classes (#5436)
This commit is contained in:
@@ -113,14 +113,7 @@ class LinkResolveVisitor final : public VNVisitor {
|
||||
// NodeTask: Remember its name for later resolution
|
||||
if (m_underGenerate) nodep->underGenerate(true);
|
||||
// Remember the existing symbol table scope
|
||||
if (m_classp) {
|
||||
if (nodep->name() == "randomize" || nodep->name() == "srandom") {
|
||||
nodep->v3error(nodep->prettyNameQ()
|
||||
<< " is a predefined class method; redefinition not allowed"
|
||||
" (IEEE 1800-2023 18.6.3)");
|
||||
}
|
||||
nodep->classMethod(true);
|
||||
}
|
||||
if (m_classp) nodep->classMethod(true);
|
||||
// V3LinkDot moved the isExternDef into the class, the extern proto was
|
||||
// checked to exist, and now isn't needed
|
||||
nodep->isExternDef(false);
|
||||
|
||||
Reference in New Issue
Block a user