This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
C++11 final classes
- From: Florian Weimer <fweimer at redhat dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 14 Oct 2013 11:25:42 +0200
- Subject: C++11 final classes
- Authentication-results: sourceware.org; auth=none
Are C++11 final classes really final, or is it still possible to define
a derived class through some hack without violating language rules?
It seems we devirtualize calls to virtual members of final classes in
some cases, so I assume final is really final, but I'm not sure. :-)
--
Florian Weimer / Red Hat Product Security Team