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 tree-optimization/47316] devirtualize calls to virtual methods that are never further overriden


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


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