[PATCH] Add new diagnostic to check for bad member function calls in mem-initializer-lists.
emily.a.bellows at gmail.com
Sat Dec 6 04:14:43 PST 2014
This patch adds a new diagnostic that checks for member function calls before all base classes in a mem-initializer-list are initialized, which is undefined behavior. (C++03 12.6.2p8; C++11 12.6.2p13.)
The added code looks for member call expressions which use implicit or explicit 'this' inside of the arguments of a base class initializer to signal the warning.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3439 bytes
Desc: not available
More information about the cfe-commits