Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 344a3d0bc0fb0868b519c3342b4982d6121eece3)

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

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -Weverything
prog.cc:17:3: warning: no previous prototype for function 'source' [-Wmissing-prototypes]
B source() { return A(); }
  ^
prog.cc:17:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
B source() { return A(); }
^
static 
prog.cc:22:2: warning: C++98 requires newline at end of file [-Wc++98-compat-pedantic]
}
 ^
prog.cc:21:6: warning: unused variable 'ap' [-Wunused-variable]
   B ap(source());   // C4350
     ^
3 warnings generated.
Exit Code:
0