[PATCH] [libc++abi] Disallow conversions from function pointers to void*.

Eric Fiselier eric at efcs.ca
Thu Apr 2 16:56:37 PDT 2015


Hi mclow.lists, jroelofs,

Function pointers and member function pointers cannot be converted to void*. libc++abi incorrectly allows this conversion for function pointers.

I also flushed out some of the pointer to member function conversion tests.

http://reviews.llvm.org/D8811

Files:
  src/private_typeinfo.cpp
  test/catch_function_01.pass.cpp
  test/catch_member_function_pointer_01.pass.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8811.23186.patch
Type: text/x-patch
Size: 3773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150402/4044f981/attachment.bin>


More information about the cfe-commits mailing list