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

[Concepts] Traverse the instantiation chain for parameter injection inside a constraint scope #79568

Merged
merged 3 commits into from
Jan 27, 2024

Commits on Jan 26, 2024

  1. [Concepts] Traverse the instantiation chain for parameter injection i…

    …nside a constraint scope
    
    We preserve the trailing requires-expression during the lambda
    expression transformation. In order to get those referenced parameters
    inside a requires-expression properly resolved to the instantiated
    decls, we intended to inject these 'original' ParmVarDecls to the
    current instantiaion scope, at `Sema::SetupConstraintScope`.
    
    The previous approach seems to overlook nested instantiation chains,
    leading to the crash within a nested lambda followed by a requires clause.
    
    This fixes llvm#73418.
    zyn0217 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    386c17d View commit details
    Browse the repository at this point in the history
  2. fixup && format

    zyn0217 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    5618763 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. Configuration menu
    Copy the full SHA
    164ee60 View commit details
    Browse the repository at this point in the history