http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52103
--- Comment #3 from mlg 2012-02-04 09:50:39 UTC ---
> You can use C++11 explicit override control
Since it is a lot of existing code, I'm afraid I'd have to
have _them_ used override 5 or 10 or so years ago.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52103
--- Comment #2 from Jonathan Wakely 2012-02-03
10:13:55 UTC ---
You can use C++11 explicit override control:
struct B {
virtual void f(int);
};
struct D : B {
void f(long) override; // error: doesn't override anything
void f(int) over
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52103
Richard Guenther changed:
What|Removed |Added
Keywords||diagnostic
Version|unknown
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52103
--- Comment #1 from mlg 2012-02-03 09:14:36 UTC ---
$ g++ --version
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc. [...]