Skip to content

Parameter packs not expanded in lambda template list #48937

@llvmbot

Description

@llvmbot
Bugzilla Link 49593
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @zygoloid

Extended Description

The following code intends to work, even if it fails in three major compilers:

template <typename... Ts>
void f(Ts...) {
([](){}, ...);
}

int main() { f(0, 0.5); }

(goldbot: https://godbolt.org/z/xnM9dY)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"lambdaC++11 lambda expressions

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions