This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53206] overloaded virtual non const warning


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);
        };


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]