Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc:8:5: error: no matching function for call to object of type '(lambda at prog.cc:5:16)'
    foo(tag<int>{}); // 'bar' was not declared in this scope
    ^~~
prog.cc:5:16: note: candidate template ignored: substitution failure [with $0 = tag<int>]: use of undeclared identifier 'bar'
    auto foo = [](auto x) -> decltype(bar(x)) { return {}; };
               ^                      ~~~
1 error generated.
Exit Code:
1