Skip to content

fix(sv): bind derived classes in their own declaration scopes - #2093

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/string-class-heap/bind-derived-classes-their-own-declaration-scopes--7b2b0f70
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/string-class-heap/bind-derived-classes-their-own-declaration-scopes--7b2b0f70

Conversation

@tignear

@tignear tignear commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

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

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
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-26T00:25:18.036197Z
We couldn’t complete this review. Comment @codex review to try again.
ee7e108 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@tignear

tignear commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(sv)!: support parameterized classes #1796
2 fix(sv): bind derived classes in their own declaration scopes #2093 👈
3 feat(sv)!: support shallow copies of class objects #1810
4 feat(sv): support classes declared in packages and the compilation unit #1850
5 feat(sv): let processes of several instances write a package variable #1872

@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

Base automatically changed from stack/tignear/feat/string-class-heap/support-parameterized-classes--45d02629 to master October 26, 2026 01:30
@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 26, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 26, 2026
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-26 01:33 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • ✅ Checks passed · on draft merge queue: checking #2093 on master (a8be24b) #2095
  • ✅ Merged — 2026-10-26 02:06 UTC · at 05a48de173325eb70a4b6feeec847b1341e8b205 · merge

This pull request spent 33 minutes 46 seconds in the queue, including 31 minutes 26 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#1796 [⛓️ feat(sv)!: support parameterized classes #1796]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify mergify Bot mentioned this pull request Oct 26, 2026
43 of 73 tasks
@mergify
mergify Bot merged commit 05a48de into master Oct 26, 2026
24 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/string-class-heap/bind-derived-classes-their-own-declaration-scopes--7b2b0f70 branch October 26, 2026 02:06
@mergify mergify Bot removed the queued Mergify queue entry label Oct 26, 2026
@mergify mergify Bot mentioned this pull request Oct 26, 2026
43 of 73 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant