Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cyclic lookups with UnscopedEnums #6110

Merged

Conversation

juliusikkala
Copy link
Contributor

@juliusikkala juliusikkala commented Jan 16, 2025

Fixes #6096 by ignoring transparent decls when looking up inheritances of a transparent parent decl, as that situation leads to cyclic lookups.

@juliusikkala juliusikkala requested a review from a team as a code owner January 16, 2025 19:18
csyonghe
csyonghe previously approved these changes Jan 16, 2025
Copy link
Collaborator

@csyonghe csyonghe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for fixing this issue!

@csyonghe
Copy link
Collaborator

Can we also add a regression test for this fix?

@csyonghe csyonghe added the pr: non-breaking PRs without breaking changes label Jan 16, 2025
@csyonghe csyonghe enabled auto-merge (squash) January 16, 2025 21:28
@csyonghe csyonghe merged commit d3ad6bb into shader-slang:master Jan 17, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple unscoped enums with explicit underlying type cause cyclic reference error
2 participants