Language
C++
Compiler
gcc 8.2.0
Options
Warnings
Optimization
Don't Use Boost
C++11
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++11 -pedantic-errors
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc 8.2.0
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++11 -pedantic-errors
prog.cc:25:32: warning: unnecessary parentheses in declaration of 'b' [-Wparentheses]
static const type_info *const(b[]);
^
prog.cc:48:48: warning: unnecessary parentheses in declaration of 'b' [-Wparentheses]
template <typename... l> const type_info *const(F<l...>::b[]){&typeid(l)...};
^
prog.cc: In member function 'void H::w() const':
prog.cc:35:45: warning: array subscript 3 is above array bounds of 'const std::type_info* const [3]' [-Warray-bounds]
const type_info &m_fn3() const { return *b[o]; }
~^
/usr/lib/x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/ccB5c35D.o: In function `H::w() const':
prog.cc:(.text+0x15): undefined reference to `std::type_info::k() const'
collect2: error: ld returned 1 exit status