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++/57854] Would like to have a warning for virtual overrides without C++11 "override" keyword


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.

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