patch: fix odr of pure functions in declrefexpr

Nick Lewycky nlewycky at google.com
Thu Jan 31 16:03:43 PST 2013


This patch makes "&Cls::purevfn" not an odr use. This isn't what the
standard says, but that's a defect (to be filed). "Cls::purevfn()" is still
an odr use.

Also fixes a bug in the previous patch that caused us to not mark the
function referenced just because we didn't want to mark it odr used.

Please review!

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


More information about the cfe-commits mailing list