-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[Clang] Correctly propagate type aliases' unexpanded flags up to lambda #122875
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ struct identity { | |
using type = T; | ||
}; | ||
|
||
template <class> using ElementType = int; | ||
|
||
template <class = void> void f() { | ||
|
||
static_assert([]<class... Is>(Is... x) { | ||
|
@@ -47,6 +49,10 @@ template <class = void> void f() { | |
}(), ...); | ||
}(1, 2); | ||
|
||
[]<class... Is>(Is...) { | ||
([] { using T = ElementType<Is>; }(), ...); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Out of curiosity were applying the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that's exactly why the issue arises. |
||
}(1); | ||
|
||
[](auto ...y) { | ||
([y] { }(), ...); | ||
}(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's up with that formatting? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing wrong with that, this is just another case falling into that entry - we should have fixed this one in that PR :)