https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68423
Bug ID: 68423 Summary: override/final doesn't cause error in templated class without base Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rhainin1 at binghamton dot edu Target Milestone: --- The following does not produce a compile time error, though it should because Cls doesn't ever have a base class. template <typename> struct Cls { void fun() override { } }; nor does: template <int> struct Cls { void fun() final { } };