[Bug c++/88694] constexpr isn't captured correctly in lambda

2021-08-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88694 --- Comment #6 from Jonathan Wakely --- Fixed by r11-88: c++: Avoid inconsistency in lambda fn's this pointer name [pr94807] * coroutines.cc (morph_fn_to_coro): Just check for closure_identifier. * pt.c (

[Bug c++/88694] constexpr isn't captured correctly in lambda

2021-08-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88694 Andrew Pinski changed: What|Removed |Added Known to fail||10.3.0 Known to work|

[Bug c++/88694] constexpr isn't captured correctly in lambda

2019-01-06 Thread ensadc at mailnesia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88694 ensadc at mailnesia dot com changed: What|Removed |Added CC||ensadc at mailnesia dot com

[Bug c++/88694] constexpr isn't captured correctly in lambda

2019-01-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88694 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/88694] constexpr isn't captured correctly in lambda

2019-01-04 Thread amosbird at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88694 --- Comment #2 from Amos Bird --- Currently by introducing a `auto local_i = decltype(i)();` can workaround this. #include #include #include template constexpr void static_for_impl(Func&& f, std::integer_sequence) { (f(std::integral_c

[Bug c++/88694] constexpr isn't captured correctly in lambda

2019-01-04 Thread amosbird at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88694 --- Comment #1 from Amos Bird --- Created attachment 45343 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45343&action=edit the ii file