https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83115

--- Comment #1 from Alexander Kolesov <alexandr.kolesov at gmail dot com> ---
The error we can see:

prog.cc: In function 'void doSomething(double)':
prog.cc:6:44: error: 'value' was not declared in this scope
  [ now = std::chrono::system_clock::now(), value]{}();
                                            ^~~~~
prog.cc:6:44: error: declaration of '<typeprefixerror>value' shadows a
parameter
prog.cc:4:31: warning: unused parameter 'value' [-Wunused-parameter]
 void doSomething(const double value)
                  ~~~~~~~~~~~~~^~~~~

Reply via email to