Language
C++
Compiler
gcc HEAD 9.0.0 20180822 (experimental)
Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.0 20180822 (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
prog.cc: In function 'int main()':
prog.cc:8:10: error: narrowing conversion of '1.2e+0' from 'double' to 'bool' [-Wnarrowing]
8 | X x{1.2};
| ^
prog.cc:8:5: warning: unused variable 'x' [-Wunused-variable]
8 | X x{1.2};
| ^