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

Parameter packs not expanded in lambda template list #48937

Closed
llvmbot opened this issue Mar 15, 2021 · 1 comment · Fixed by #98496
Closed

Parameter packs not expanded in lambda template list #48937

llvmbot opened this issue Mar 15, 2021 · 1 comment · Fixed by #98496
Labels
bugzilla Issues migrated from bugzilla c++20 clang:frontend Language frontend issues, e.g. anything involving "Sema" lambda C++11 lambda expressions

Comments

@llvmbot
Copy link
Member

llvmbot commented Mar 15, 2021

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)

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
cor3ntin added a commit to cor3ntin/llvm-project that referenced this issue Jul 11, 2024
@EugeneZelenko EugeneZelenko added clang:frontend Language frontend issues, e.g. anything involving "Sema" lambda C++11 lambda expressions labels Jul 11, 2024
@llvmbot
Copy link
Member Author

llvmbot commented Jul 11, 2024

@llvm/issue-subscribers-clang-frontend

Author: None (llvmbot)

| | | | --- | --- | | Bugzilla Link | [49593](https://llvm.org/bz49593) | | 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...) {
([]<Ts>(){}, ...);
}

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

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

aaryanshukla pushed a commit to aaryanshukla/llvm-project that referenced this issue Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++20 clang:frontend Language frontend issues, e.g. anything involving "Sema" lambda C++11 lambda expressions
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants