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
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:
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
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