https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #13 from Alexander Volkov ---
There was no response, so I created a new bugreport:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78010
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #12 from Alexander Volkov ---
Sorry, it should be
struct B : A {
virtual void f() final;
};
in the first example.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
Alexander Volkov changed:
What|Removed |Added
CC||a.volkov at rusbitech dot ru
--- Comm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
Markus Trippelsdorf changed:
What|Removed |Added
Status|CLOSED |RESOLVED
Resolution|FIXED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
Helfer Thomas changed:
What|Removed |Added
Status|RESOLVED|CLOSED
Resolution|INVALID
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
ol.rakhimov at gmail dot com changed:
What|Removed |Added
CC||ol.rakhimov at gmail dot co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #8 from Markus Trippelsdorf ---
(In reply to Helfer Thomas from comment #7)
> can you give me the rationale of this usage ?
Performance.
See also -Wsuggest-final-types -Wsuggest-final-methods in the gcc manual.
Although Stroustrup
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #7 from Helfer Thomas ---
can you give me the rationale of this usage ?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #6 from Markus Trippelsdorf ---
If you want some real life examples, grep e.g. the Firefox source tree
for "final override" or "override final".
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
Helfer Thomas changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #4 from Markus Trippelsdorf ---
I forgot to add "with -Wall -Wextra". gcc needs explicit -Woverloaded-virtual.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #3 from Markus Trippelsdorf ---
And BTW both clang and EDG warn for the first example:
foo.cpp:6:16: warning: 'B::f' hides overloaded virtual function
[-Woverloaded-virtual]
virtual void f() final;
^
foo.cpp:2:16: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
Markus Trippelsdorf changed:
What|Removed |Added
CC||trippels at gcc dot gnu.org
--- Co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
14 matches
Mail list logo