Language
C++
Compiler
gcc HEAD 8.0.1 20180415 (experimental)
Options
Warnings
Boost 1.67.0
C++2a(GNU)
-pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-head/include -std=gnu++2a -pedantic
Exit Code:
0
Author
anonymous
almost 7 years ago
C++
gcc HEAD 8.0.1 20180415 (experimental)
Author
anonymous
almost 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-head/include -std=gnu++2a -pedantic
prog.cc: In function 'int main()':
prog.cc:4:17: warning: ISO C++ forbids taking address of function '::main' [-Wpedantic]
decltype(main()) x = 0;
^
prog.cc:4:17: warning: ISO C++ forbids taking address of function '::main' [-Wpedantic]
prog.cc:4:20: warning: unused variable 'x' [-Wunused-variable]
decltype(main()) x = 0;
^