Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 3261aefc72b3769e8b3eccbb67e1145e195ffa8d)

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
Raw compiler options
-Weverything

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2a -Weverything
prog.cc:5:11: warning: constructor parameter 'a' shadows the field 'a' of 'A' [-Wshadow-field-in-constructor]
    A(int a, int b_) : a(a), b(b_) {}
          ^
prog.cc:4:9: note: previous declaration is here
    int a, b;
        ^
1 warning generated.
Exit Code:
0