Language
C++
Compiler
gcc HEAD 11.0.0 20201027 (experimental)
Options
Warnings
Boost 1.73.0
C++11(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++11
Exit Code:
0
Author
anonymous
almost 5 years ago
C++
gcc HEAD 11.0.0 20201027 (experimental)
Author
anonymous
almost 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++11
prog.cc: In member function 'virtual bool Base::equal(const Base&) const':
prog.cc:12:5: warning: no return statement in function returning non-void [-Wreturn-type]
12 | }
| ^
prog.cc: In member function 'virtual bool Derived::equal(const Base&) const':
prog.cc:18:14: warning: variable 'r' set but not used [-Wunused-but-set-variable]
18 | auto r = dynamic_cast<const Derived&>(rhs);
| ^