Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git 1bc73590ad1335313e8f262393547b8af67c9167) (https://github.com/llvm-mirror/llvm.git cc6f9cbb28a743c234eade716af64074c65a41a4)

Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-head/include -std=gnu++2a
prog.cc:9:16: error: function 'operator()<(lambda at prog.cc:6:13) &>' with deduced return type cannot be used before it is defined
        return self(self);
               ^
prog.cc:12:5: note: in instantiation of function template specialization 'main()::(anonymous class)::operator()<(lambda at prog.cc:6:13) &>' requested here
  it(it)(4)(6)(42)(77)(999);
    ^
prog.cc:6:13: note: 'operator()<(lambda at prog.cc:6:13) &>' declared here
  auto it = [&](auto&& self) {
            ^
1 error generated.
Exit Code:
1