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 51c44966aa9d107d85bfdd77fc9d265c9b69415d) (https://github.com/llvm-mirror/llvm.git c4cfe4768cded87ed18267dda379a854b714d684)

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:10:15: error: 'Bar' is a private member of 'Foo<int>'
    Foo<int>::Bar b;
              ^
prog.cc:4:15: note: declared private here
        class Bar{            
              ^
prog.cc:9:24: warning: unused parameter 'f' [-Wunused-parameter]
void Fun(const Foo<T> &f){
                       ^
1 warning and 1 error generated.
Exit Code:
1