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++/31397] Useful compiler warning missing (virtual functions in derived classes used without 'virtual')



------- Comment #7 from rguenth at gcc dot gnu dot org  2009-07-13 11:59 -------
Your example is overriding A::f, not overloading it.  Overloading would be

  int f(int x, int y);

do you want a warning for that as well?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31397


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