Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git c4ed142e695f14ba5675ec6d12226ee706329a0f)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

about 4 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2b
prog.cc:11:9: error: implicit instantiation of undefined template 'TD<int>'
        TD<decltype(m)>{};
        ^
prog.cc:4:8: note: template is declared here
struct TD;
       ^
prog.cc:12:9: error: implicit instantiation of undefined template 'TD<int &&>'
        TD<decltype(n)>{};
        ^
prog.cc:4:8: note: template is declared here
struct TD;
       ^
prog.cc:9:6: warning: lambda capture 'n' is not required to be captured for this use [-Wunused-lambda-capture]
    [n, m = n]
     ^~
prog.cc:9:9: warning: lambda capture 'm' is not required to be captured for this use [-Wunused-lambda-capture]
    [n, m = n]
      ~~^~~~~
prog.cc:9:5: warning: expression result unused [-Wunused-value]
    [n, m = n]
    ^~~~~~~~~~
3 warnings and 2 errors generated.
Exit Code:
1