Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353360 - Bogus "type must implement the inherited pure virtual method" error
Summary: Bogus "type must implement the inherited pure virtual method" error
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.0.1   Edit
Assignee: Sergey Prigogin CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
: 352210 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-28 14:56 EDT by Sergey Prigogin CLA
Modified: 2011-08-01 10:36 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 "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
Comment 3 CDT Genie CLA 2011-07-31 02:23:04 EDT
*** 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
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. ***