Language
C++
Compiler
clang 7.0.0
Options
Warnings
Boost 1.68.0
C++17(GNU)
-pedantic-errors
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-7.0.0/include -std=gnu++17 -pedantic-errors
Exit Code:
1
Author
anonymous
over 6 years ago
C++
clang 7.0.0
Author
anonymous
over 6 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-7.0.0/include -std=gnu++17 -pedantic-errors
prog.cc:4:6: error: C++ requires a type specifier for all declarations
constructor()
^
prog.cc:6:10: error: use of undeclared identifier 'print'
print("ABC");
^
prog.cc:8:2: error: expected ';' after class
}
^
;
prog.cc:12:18: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse]
className ABC();
^~
prog.cc:12:18: note: remove parentheses to declare a variable
className ABC();
^~
1 warning and 3 errors generated.