Community
Participate
Working Groups
The following code causes Codan error "The type 'B' must implement the inherited pure virtual method 'A::~A'" but compiles fine by gcc and clang: class A { public: virtual ~A() = 0; }; class B : public A { }; void test() { B b; }
Looks like a duplicate of bug 352210.
*** cdt git genie on behalf of Sergey Prigogin *** Bug 353360 - Bogus "type must implement the inherited pure virtual method" error. Fix and test case. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=0df4d6096f0ae1116a5b8e988f2e49a3efe86c46
*** cdt git genie on behalf of Sergey Prigogin *** Bug 353360 - Bogus "type must implement the inherited pure virtual method" error. Fix and test case. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=33c2e373d4d562de2fe1dadf3afd7bf1ad1db265
Fixed in master and cdt_8_0 > 20110731.
*** Bug 352210 has been marked as a duplicate of this bug. ***