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

fixes #23628; Compiler crash for nested generic type instantiations with static[int] #24426

Closed
wants to merge 4 commits into from

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Nov 10, 2024

Original PR is #23630 by @Nimaoth, could not personally commit the refactor to that PR so had to open this one branched off from it.

Symbols of generic parameters with static constraints can lose their tyGenericParam type in favor of the static type. This trips up the compiler, which expects only tyGenericParam, when attempting to instantiate the parameters of a tyGenericInvocation to look it up in the cache. To fix this, also consider the uninstantiated static case.

I don't know why only generic parameters are instantiated here and not any type before looking at the cache, will have to look into it after.

Edit: This breaks tmatrix4 but the original doesn't

@metagn metagn closed this Nov 10, 2024
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