Bug 455

Summary: Copy assignment operators without check against self-assignment
Product: AspectC++ Reporter: Markus Elfring <Markus.Elfring>
Component: Parser-PumaAssignee: Matthias <urban.matthias>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   

Description Markus Elfring 2011-10-31 10:40:42 CET
I have found a few source files for classes which contain custom copy assignment
operators.

Examples:
- List.cc
- MatchName.cc
- PointCut.cc

I wonder why checks against self-assignment were omitted.

https://www.securecoding.cert.org/confluence/display/cplusplus/MEM42-CPP.+Ensure+that+copy+assignment+operators+do+not+damage+an+object+that+is+copied+to+itself
http://dietmar-kuehl.de/mirror/c++-faq/assignment-operators.html#faq-12.3