Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360223 - [c++] Failure to identify copy constructor
Summary: [c++] Failure to identify copy constructor
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 08:25 EDT by Markus Schorn CLA
Modified: 2012-02-23 11:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Schorn CLA 2011-10-07 08:25:41 EDT
In the following two examples we don't detect the user-defined copy-constructor and add the implicit one:

   template<typename T> struct C {
      C(const C<T>& c) {}
   };

   struct D {
      typedef const D& TD;
      D(TD c) {}
   };
Comment 1 Markus Schorn CLA 2011-10-31 09:25:29 EDT
Added testcase and fix.
Comment 2 CDT Genie CLA 2011-10-31 10:23:01 EDT
*** cdt git genie on behalf of Markus Schorn ***

    Bug 360223: Detection of user-defined copy constructor.

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