Language
C++
Compiler
gcc HEAD 9.0.0 20181117 (experimental)
Options
Warnings
Boost 1.68.0
C++2a(GNU)
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a -pedantic-errors
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.0 20181117 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a -pedantic-errors
prog.cc: In constructor 'X::X(bool)':
prog.cc:6:27: warning: left operand of comma operator has no effect [-Wunused-value]
6 | X(bool b) : X((b, X(42))) {} // clang doesn't like this either
| ^
/usr/lib/x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status