patch: fix odr of pure virtual operator()

Nick Lewycky nlewycky at google.com
Tue Feb 5 22:48:43 PST 2013


This patch changes Sema::BuildCallToObjectOfClassType to not mark a virtual
operator() as odr used when called via functor syntax "(*obj)();". There's
no way this syntax can be used to call the body of a pure virtual function.
Please review!

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130205/f5e0db7b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: odr-pure-3.patch
Type: application/octet-stream
Size: 1318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130205/f5e0db7b/attachment.obj>


More information about the cfe-commits mailing list