Repository navigation
fix(sv): bind derived classes in their own declaration scopes - #2093
Conversation
A class inherits the parameters, body parameters and typedefs its base and the base's bases declare (IEEE 1800-2023 8.13), not the scope around the base's declaration. A specialization therefore records what the class declares itself, and a derived class merges only that from its lineage: a derived class declared in a generate block that hides a module constant now binds its typedefs with the generate block's constant, where it saw the module's before. A class declared in a block that loop generation repeats is a class of its own in each iteration (27.4), which the analyzer does not tell apart yet; such classes are rejected instead of sharing one iteration's constants (#2064). Change-Id: I7b2b0f7066fa671c3a7f19e3360b2dea5293b76f
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
This pull request is part of a Mergify stack:
|
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 33 minutes 46 seconds in the queue, including 31 minutes 26 seconds running CI. Required conditions to merge
|
A class inherits the parameters, body parameters and typedefs its base and
the base's bases declare (IEEE 1800-2023 8.13), not the scope around the
base's declaration. A specialization therefore records what the class
declares itself, and a derived class merges only that from its lineage: a
derived class declared in a generate block that hides a module constant now
binds its typedefs with the generate block's constant, where it saw the
module's before.
A class declared in a block that loop generation repeats is a class of its
own in each iteration (27.4), which the analyzer does not tell apart yet;
such classes are rejected instead of sharing one iteration's constants
(#2064).
Depends-On: #1796