[PATCH] Implement DR61: Address of ambiguous bound methods should be disallowed

David Majnemer david.majnemer at gmail.com
Fri Jun 7 21:15:33 PDT 2013


clang currently disallows bound methods from having their address taken but
sometimes allows them if the method is overloaded in some way.

The attached patch implements DR61 [*] which affirms that expressions
containing unresolved member access should be disallowed when performing
"address of" operations.


[*] http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_closed.html#61

Thanks
-- 
David Majnemer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130607/0dcbd592/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DR61.diff
Type: application/octet-stream
Size: 5763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130607/0dcbd592/attachment.obj>


More information about the cfe-commits mailing list