[Bug c++/107579] ICE on fold-expression on .* member access operator

2022-11-08 Thread jeanmichael.celerier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107579 --- Comment #4 from Jean-Michaël Celerier --- Adding an explicit "member..." to the lambda capture, e.g. [&, member...] makes it work

[Bug c++/107579] ICE on fold-expression on .* member access operator

2022-11-08 Thread jeanmichael.celerier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107579 --- Comment #3 from Jean-Michaël Celerier --- It worked in 11.2 and started failing in 11.3. Short repro: https://gcc.godbolt.org/z/GYYbrTdxh #include template constexpr void for_each_field(T&& value, F&& func) { using namespace boost:

[Bug c++/107579] ICE on fold-expression on .* member access operator

2022-11-08 Thread jeanmichael.celerier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107579 --- Comment #2 from Jean-Michaël Celerier --- Clang and MSVC compiles the same thing correctly

[Bug c++/107579] ICE on fold-expression on .* member access operator

2022-11-08 Thread jeanmichael.celerier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107579 --- Comment #1 from Jean-Michaël Celerier --- Created attachment 53851 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53851&action=edit bug report provided by -fbug-report