[Bug c++/36848] const/nonconst virtual function ambiguity deserves a warning

2011-06-21 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36848 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/36848] const/nonconst virtual function ambiguity deserves a warning

2009-12-23 Thread redi at gcc dot gnu dot org
--- 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