Possible Duplicate:
What are all the common undefined behaviour that a C++ programmer should know about?
I am about to prepare a checklist or guideliness for C++ self & peer code reviews, Since there are so many scenarios which may lead to realm of the dreaded Undefined Behavior
, I was thinking of coming up with a sort of checklist of Undefined behaviors in most heavily used C++ language constructs.
Ofcourse it is not possible to anticipate the Undefined behaviors which emnate through modifications of variables between Sequence points
but I think it is possible to list down scenarios emnating from other scenarios.
If you were performing a code review what commonly Undefined Behavior
producing scenarios would you look out for?