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
---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #8 from Markus Trippelsdorf trippels at gcc dot gnu.org ---
(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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #7 from Helfer Thomas thomas.helfer at cea dot fr ---
can you give me the rationale of this usage ?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
Helfer Thomas thomas.helfer at cea dot fr changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #6 from Markus Trippelsdorf trippels at gcc dot gnu.org ---
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
Marek Polacek mpolacek at gcc dot gnu.org changed:
What|Removed |Added
CC||mpolacek at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
--- Comment #4 from Markus Trippelsdorf trippels at gcc dot gnu.org ---
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 trippels at gcc dot gnu.org ---
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;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65856
Markus Trippelsdorf trippels at gcc dot gnu.org changed:
What|Removed |Added
CC|
14 matches
Mail list logo