Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 7993d61177c8c6e9aa238e57a684c6cd3db3b571)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic
Raw compiler options
-Wshadow-all

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -Wshadow-all
prog.cc:2:20: warning: declaration shadows a local variable [-Wshadow-uncaptured-local]
    int i = [](int i){ return i;}(1);
                   ^
prog.cc:2:9: note: previous declaration is here
    int i = [](int i){ return i;}(1);
        ^
1 warning generated.
Exit Code:
1