[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

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

2019-01-04 Thread amosbird at gmail dot com
nt: c++ Assignee: unassigned at gcc dot gnu.org Reporter: amosbird at gmail dot com Target Milestone: --- Created attachment 45342 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45342&action=edit source code This might be related to https://gcc.gnu.org/bugzilla/