This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20710] g++ should warn when hiding non-virtual method in base class
- From: "sbergman at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Oct 2016 12:22:04 +0000
- Subject: [Bug c++/20710] g++ should warn when hiding non-virtual method in base class
- Auto-submitted: auto-generated
- References: <bug-20710-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20710
Stephan Bergmann <sbergman at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sbergman at redhat dot com
--- Comment #9 from Stephan Bergmann <sbergman at redhat dot com> ---
(In reply to Jonathan Wakely from comment #7)
> The C++0x override control works for virtual and non-virtual names
That's not true for what then became the C++11 standard, right? "A
virt-specifier-seq shall appear only in the declaration of a virtual member
function (10.3)."