Skip to content

Variadic alias template rejected without instantiation #32252

@llvmbot

Description

@llvmbot
Bugzilla Link 32905
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

template <typename... Ts> 
struct X {
    template <typename... Us>
    using Y = X<void(Ts, Us)...>;
};

template<typename... T>
using any_pairs_list = X<int, int>::Y<T...>;

Diagnostic: error: pack expansion contains parameter pack 'Us' that has a different length (2 vs. 1) from outer parameter packs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++17clang:frontendLanguage frontend issues, e.g. anything involving "Sema"rejects-valid

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions