https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61732
Bug ID: 61732 Summary: Derivation from final class incorrectly allowed Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joaquin at tid dot es I understand that [class]/3 marks this program as ill-formed: template<class Base> struct derived:Base{}; struct X final{}; void foo(derived<X>*){} int main() { foo(0); } Yet it builds and runs fine in GCC 4.8.