Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353360

Summary: Bogus "type must implement the inherited pure virtual method" error
Product: [Tools] CDT Reporter: Sergey Prigogin <eclipse.sprigogin>
Component: cdt-codanAssignee: Sergey Prigogin <eclipse.sprigogin>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug, kubol, malaperle
Version: 8.0   
Target Milestone: 8.0.1   
Hardware: All   
OS: All   
Whiteboard:

Description Sergey Prigogin CLA 2011-07-28 14:56:42 EDT
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; 
}
Comment 1 Marc-André Laperle CLA 2011-07-29 23:44:59 EDT
Looks like a duplicate of bug 352210.
Comment 2 CDT Genie CLA 2011-07-31 02:23:03 EDT
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 353360 - Bogus &quot;type must implement the inherited pure virtual
    method&quot; error. Fix and test case.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=0df4d6096f0ae1116a5b8e988f2e49a3efe86c46
Comment 3 CDT Genie CLA 2011-07-31 02:23:04 EDT
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 353360 - Bogus &quot;type must implement the inherited pure virtual
    method&quot; error. Fix and test case.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=33c2e373d4d562de2fe1dadf3afd7bf1ad1db265
Comment 4 Sergey Prigogin CLA 2011-07-31 17:53:30 EDT
Fixed in master and cdt_8_0 > 20110731.
Comment 5 Sergey Prigogin CLA 2011-08-01 10:36:31 EDT
*** Bug 352210 has been marked as a duplicate of this bug. ***