Skip to content

[mypyc] Fix inconsistent vtable method prefix - #21812

Merged
p-sawicki merged 1 commit into
python:masterfrom
p-sawicki:fix-inconsistent-vtable-method-prefix
Aug 6, 2026
Merged

[mypyc] Fix inconsistent vtable method prefix#21812
p-sawicki merged 1 commit into
python:masterfrom
p-sawicki:fix-inconsistent-vtable-method-prefix

Conversation

@p-sawicki

Copy link
Copy Markdown
Collaborator

When generating the vtable we emit the name of either entry.method or entry.shadow_method. However the group prefix is always based on entry.method so if the two methods are in different compilation groups, we generate invalid C.

Fix the inconsistency by using the same method for the prefix as for the name.

@p-sawicki
p-sawicki merged commit 82dd3af into python:master Aug 6, 2026
18 checks passed
@p-sawicki
p-sawicki deleted the fix-inconsistent-vtable-method-prefix branch August 6, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants