Language
C++
Compiler
clang 9.0.0
Options
Warnings
Don't Use Boost
C++2a
-pedantic-errors
$ clang++ prog.cc -Wall -Wextra -std=c++2a -pedantic-errors
Exit Code:
1
Author
anonymous
over 5 years ago
C++
clang 9.0.0
Author
anonymous
over 5 years ago
$ clang++ prog.cc -Wall -Wextra -std=c++2a -pedantic-errors
prog.cc:14:10: error: designated initializers are a C99 feature [-Werror,-Wc99-extensions]
.hoge = "Hello world"
^~~~~~~~~~~~~~~~~~~~~
prog.cc:13:6: error: designated initializers are a C99 feature [-Werror,-Wc99-extensions]
.f = {
^~~~~~
prog.cc:12:7: warning: unused variable 'a' [-Wunused-variable]
bar a = {
^
1 warning and 2 errors generated.