Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang HEAD 10.0.0 (https://github.com/llvm-mirror/clang.git 3441aaff8506ac0252f9bba9d1ce117cf35906ce) (https://github.com/llvm-mirror/llvm.git ae7ce179222e4d642717fbf814ef60ffb12bb3c1)

Options
Warnings
Boost 1.71.0
C++2a(GNU)
no pedantic
Raw compiler options
-Wshadow-all

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-head/include -std=gnu++2a -Wshadow-all
prog.cc:8:23: warning: parameter 'x' shadows member inherited from type 'C' [-Wshadow-field]
    static int f (int x) { return x; }
                      ^
prog.cc:3:9: note: declared here
    int x;
        ^
1 warning generated.
Exit Code:
0