Skip to content

Conversation

@0x12CC
Copy link
Contributor

@0x12CC 0x12CC commented Jan 28, 2026

#20419 implements attribute merging for add_ir_attributes_* attributes. This commit fixes an issue that occurs when merging attributes on function template declarations.

Attribute merging is deferred until template instantiation if an attribute contains dependent expressions. Previously, we only checked if the existing attribute was dependent but not if the new attribute was dependent. This would cause the merge to fail but the new attribute would still be dropped from the AST. This commit ensures both attributes are checked and new dependent attributes do not disappear.

@0x12CC 0x12CC requested a review from a team as a code owner January 28, 2026 20:49
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.

1 participant