Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang 9.0.0

Options
Warnings
Don't Use Boost
C++2a
-pedantic-errors

Author

anonymous

over 5 years ago

greet.h
greet.c

$ 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.
Exit Code:
1