[Bug c++/32934] No warning when creating a non const derived function from a const virtual function
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jul 31 21:49:00 GMT 2007
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-07-31 21:49 -------
http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Warning-Options.html
-Wall
All of the above `-W' options combined. This enables all the warnings about
constructions that some users consider questionable, and that are easy to avoid
(or modify to prevent the warning), even in conjunction with macros. This also
enables some language-specific warnings described in C++ Dialect Options and
Objective-C and Objective-C++ Dialect Options.
And:
http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/C_002b_002b-Dialect-Options.html
Under:
The following -W... options are not affected by -Wall.
....
-Woverloaded-virtual (C++ only)
Warn when a function declaration hides virtual functions from a base class.
For example, in:
struct A {
virtual void f();
};
struct B: public A {
void f(int);
};
the A class version of f is hidden in B, and code like:
B* b;
b->f();
will fail to compile.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32934
More information about the Gcc-bugs
mailing list