Language
C++
Compiler
gcc 8.2.0
Options
Warnings
Boost 1.68.0
C++11
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-8.2.0/include -std=c++11
Exit Code:
0
Author
anonymous
over 6 years ago
C++
gcc 8.2.0
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-8.2.0/include -std=c++11
prog.cc: In constructor 'Token::Token()':
prog.cc:25:4: warning: 'Token::tok' will be initialized after [-Wreorder]
} tok;
^~~
prog.cc:16:7: warning: 'int Token::<unnamed union>::ival' [-Wreorder]
int ival;
^~~~
prog.cc:5:2: warning: when initialized here [-Wreorder]
Token():tok(INT), ival(0) {}
^~~~~