* [Bug c++/85743] Cannot call template member function inside a variadic lambda unless specifying `this`
[not found] <bug-85743-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-23 9:17 ` pinskia at gcc dot gnu.org
2021-08-23 10:38 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-23 9:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85743
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Seems fixed in GCC 9+.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/85743] Cannot call template member function inside a variadic lambda unless specifying `this`
[not found] <bug-85743-4@http.gcc.gnu.org/bugzilla/>
2021-08-23 9:17 ` [Bug c++/85743] Cannot call template member function inside a variadic lambda unless specifying `this` pinskia at gcc dot gnu.org
@ 2021-08-23 10:38 ` redi at gcc dot gnu.org
2021-08-23 10:48 ` redi at gcc dot gnu.org
2022-05-27 9:54 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2021-08-23 10:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85743
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed by r265734 "Implement P0846R0, ADL and function templates."
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/85743] Cannot call template member function inside a variadic lambda unless specifying `this`
[not found] <bug-85743-4@http.gcc.gnu.org/bugzilla/>
2021-08-23 9:17 ` [Bug c++/85743] Cannot call template member function inside a variadic lambda unless specifying `this` pinskia at gcc dot gnu.org
2021-08-23 10:38 ` redi at gcc dot gnu.org
@ 2021-08-23 10:48 ` redi at gcc dot gnu.org
2022-05-27 9:54 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2021-08-23 10:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85743
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Target Milestone|--- |9.0
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reduced to remove library dependencies and make it valid as C++14 too:
template<typename... Ts>
struct Foo {
template<typename T, typename...>
constexpr int boom(int i) const { return 0; }
constexpr void foo(int* data) const {
[this, &data](auto... s) {
int sink[] { boom<Ts>(data[s]) ... };
}(1, 2, 3);
}
};
int main() {
Foo<int, float, char> f;
int a[]{0, 1, 2};
f.foo(a);
}
I don't think it was intentional that r265734 fixed this (Marek?), so we should
probably add the testcase before we close it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/85743] Cannot call template member function inside a variadic lambda unless specifying `this`
[not found] <bug-85743-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-08-23 10:48 ` redi at gcc dot gnu.org
@ 2022-05-27 9:54 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85743
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
still fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread