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 #11 from jwakely dot gcc at gmail dot com  2009-07-21 10:51 -------
There is a lot of overlap between this warning and the functionality described
by http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2852.html (which
will be updated by N2928 in a couple of weeks.)

It might make sense to add attributes rather than a -W switch, as that might
make it easier to implement the C++0x [[base_check]] and [[override]]
attributes.  It would also be easier for user code to transition from GNU-style
__attribute__((override)) to C++0x-style [[override]]


-- 


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]