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

Bug 368420

Summary: False positive warnings about members not initialized in copy constructor
Product: [Tools] CDT Reporter: Axel Mueller <aegges>
Component: cdt-codanAssignee: Marc-André Laperle <malaperle>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle
Version: 8.1.0   
Target Milestone: 8.1.0   
Hardware: All   
OS: All   
Whiteboard:

Description Axel Mueller CLA 2012-01-12 03:49:30 EST
Build Identifier: CDT 8.1

I get false positive warnings about members not initialized in copy constructor

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=339795#c51

class C
{
public:
  int field;
  C();
  C(const C& toBeCopied)
  {
    *this = toBeCopied;  
  };
};


Reproducible: Always
Comment 1 Marc-André Laperle CLA 2012-03-07 20:38:30 EST
Fixed in 8.1.0 > 2012-03-07.
Comment 2 CDT Genie CLA 2012-03-07 21:23:02 EST
*** cdt git genie on behalf of Marc-Andre Laperle ***

    Bug 368420 - FP in members not initialized in in copy constructor

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=53bc0f10e6d414ea628569ea492bd7f1a7bb758b