This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57854] Would like to have a warning for virtual overrides without C++11 "override" keyword
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Jul 2013 09:29:40 +0000
- Subject: [Bug c++/57854] Would like to have a warning for virtual overrides without C++11 "override" keyword
- Auto-submitted: auto-generated
- References: <bug-57854-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57854
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org,
| |manu at gcc dot gnu.org
--- Comment #1 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Thiago Macieira from comment #0)
> I would like a new (optional) warning that would point out every C++ virtual
> override that is done without the C++11 keyword that indicates an override.
> By necessity, this warning would only be permitted in C++11 mode.
Hi Thiago,
I am so grateful for KDE that I would like to help here if possible. But I
would like to ask the C++ maintainer whether this is something that would be
accepted in mainline G++ and whether G++ has the capabilities to detect this
easily. Jason, what do you think?
Perhaps the same issues that made [[base_check]] to be dropped would affect the
implementation of this warning? I don't know the specifics.