Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368420 - False positive warnings about members not initialized in copy constructor
Summary: False positive warnings about members not initialized in copy constructor
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 8.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Marc-André Laperle CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 03:49 EST by Axel Mueller CLA
Modified: 2012-03-07 21:23 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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