This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/68423] New: override/final doesn't cause error in templated class without base
- From: "rhainin1 at binghamton dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Nov 2015 21:15:39 +0000
- Subject: [Bug c++/68423] New: override/final doesn't cause error in templated class without base
- Auto-submitted: auto-generated
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 { }
};