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

release/19.x: [Clang] Instantiate Typedefs referenced by type alias deduction guides (#111804) #112293

Open
wants to merge 1 commit into
base: release/19.x
Choose a base branch
from

Commits on Oct 15, 2024

  1. [Clang] Instantiate Typedefs referenced by type alias deduction guides (

    llvm#111804)
    
    TypedefNameDecl referenced by a synthesized CTAD guide for type aliases
    was not transformed previously, resulting in a substitution failure in
    BuildDeductionGuideForTypeAlias() when substituting into the
    right-hand-side deduction guide.
    
    This patch fixes it in the way we have been doing since
    https://reviews.llvm.org/D80743. We transform all the function
    parameters, parenting referenced TypedefNameDecls with the
    CXXDeductionGuideDecl. Then we instantiate these declarations in
    FindInstantiatedDecl() as we build up the eventual deduction guide,
    using the mechanism introduced in D80743
    
    Fixes llvm#111508
    
    (cherry picked from commit 0bc02b9)
    zyn0217 authored and llvmbot committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    2717eeb View commit details
    Browse the repository at this point in the history