------- Comment #1 from redi at gcc dot gnu dot org  2009-12-23 23:47 -------
When GCC supports C++ attributes you could get the diagnostics you want like
this:

class A_noconst [[base_check]] : public A {
...
};

class A_const [[base_check]] : public A {
...
};

c.f. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2928.htm

As I said in bug 31397 c12 it would be better to implement those attributes
than to add warning switches


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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

Reply via email to