Fix pin to non-existent port with PINNOTFOUND suppressed (#8051) (#8052)

This commit is contained in:
Nikolai Kumar 2026-08-05 11:00:32 -05:00 committed by GitHub
parent 472a131df7
commit 351d67c81e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 33 additions and 0 deletions

View File

@ -3923,6 +3923,7 @@ class LinkDotResolveVisitor final : public VNVisitor {
<< (suggest.empty() ? "" : nodep->warnMore() + suggest)
<< '\n'
<< nodep->warnContextPrimary() << decl);
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
return;
}
}

View File

@ -0,0 +1,16 @@
#!/usr/bin/env python3
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of either the GNU Lesser General Public License Version 3
# or the Perl Artistic License Version 2.0.
# SPDX-FileCopyrightText: 2026 Wilson Snyder
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
import vltest_bootstrap
test.scenarios('vlt')
test.lint()
test.passes()

View File

@ -0,0 +1,16 @@
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2026 Nikolai Kumar
// SPDX-License-Identifier: CC0-1.0
/* verilator lint_off PINNOTFOUND */
module child ();
endmodule
module t;
child u_child (
.missing_port (1'b0)
);
endmodule