https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124340
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's more direct to prevent any derivation from the type:
class X final { ... };
redi at gcc dot gnu.org via Gcc-bugs Tue, 03 Mar 2026 04:03:22 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124340
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's more direct to prevent any derivation from the type:
class X final { ... };