This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53206] overloaded virtual non const warning
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 May 2012 08:08:53 +0000
- Subject: [Bug c++/53206] overloaded virtual non const warning
- Auto-submitted: auto-generated
- References: <bug-53206-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53206
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-05-03 08:08:53 UTC ---
It depends what you consider a false positive. I imagine it's 100% accurate,
but it doesn't always indicate a bug, sometimes it warns about code that
behaves exactly as intended.
If it's enabled then the manual should be updated to show one way to unhide the
virtual
struct B: public A {
using A::f;
void f(int);
};