https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116838
--- Comment #6 from Jamaika <lukaszcz18 at wp dot pl> --- (In reply to Jonathan Wakely from comment #3) > If you enable C++20 (or C++23) and GCC tells you that your code is not > compatible with C++20, fix the code. > > (In reply to Jamaika from comment #0) > > Codec vvenc > > ``` > > In file included from MCTF.cpp:52: > > ../Utilities/NoMallocThreadPool.h: In lambda function: > > ../Utilities/NoMallocThreadPool.h:160:31: warning: implicit capture of > > 'this' via '[=]' is deprecated in C++20 [-Wdeprecated] > > 160 | nonconst->m_cond.wait( l, [=] { return > > !m_intBarrier.isBlocked(); } ); > > | ^ > > ../Utilities/NoMallocThreadPool.h:160:31: note: add explicit 'this' or > > '*this' capture > > ``` > > This is a language change in C++20. If you want to compile the code as C++20 > or C++23, then the code needs to be fixed. This is not a GCC bug. > https://github.com/fraunhoferhhi/vvenc/pull/437