patch: fix odr of pure virtual operator()

Nick Lewycky nlewycky at
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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: odr-pure-3.patch
Type: application/octet-stream
Size: 1318 bytes
Desc: not available
URL: <>

More information about the cfe-commits mailing list