This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47316] devirtualize calls to virtual methods that are never further overriden
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Jan 2011 12:02:10 +0000
- Subject: [Bug tree-optimization/47316] devirtualize calls to virtual methods that are never further overriden
- Auto-submitted: auto-generated
- References: <bug-47316-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47316
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-17 12:02:02 UTC ---
(In reply to comment #1)
> Actually better solution would be function and type attributes, hinting the
> function is never overriden.
C++0x has override control features:
struct B {
virtual void f() const final;
};
As I've commented on several PRs, any work in this area should be done in line
with C++0x, not with GNU-specific attributes