Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

Compiler

Options

$
prog.cc: In instantiation of 'class FixPoint<main()::<lambda(auto:11, int)>&>':
prog.cc:29:40:   required from 'constexpr decltype(auto) {anonymous}::makeFixPoint(F&&) [with F = main()::<lambda(auto:11, int)>&]'
prog.cc:40:34:   required from here
prog.cc:7:1: error: base type 'main()::<lambda(auto:11, int)>&' fails to be a struct or class type
    7 | FixPoint : private F
      | ^~~~~~~~
prog.cc: In instantiation of 'constexpr decltype(auto) FixPoint<F>::operator()(Args&& ...) const [with Args = {int}; F = main()::<lambda(auto:11, int)>&]':
prog.cc:40:38:   required from here
prog.cc:18:25: error: 'operator()' is not a member of 'main()::<lambda(auto:11, int)>&'
   18 |     return F::operator()(*this, std::forward<Args>(args)...);
      |            ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc: In instantiation of 'constexpr FixPoint<F>::FixPoint(F&&) [with F = main()::<lambda(auto:11, int)>&]':
prog.cc:29:40:   required from 'constexpr decltype(auto) {anonymous}::makeFixPoint(F&&) [with F = main()::<lambda(auto:11, int)>&]'
prog.cc:40:34:   required from here
prog.cc:11:27: error: type 'main()::<lambda(auto:11, int)>&' is not a direct base of 'FixPoint<main()::<lambda(auto:11, int)>&>'
   11 |     : F{std::forward<F>(f)}
      |                           ^
Exit Code:
1