Relax complete-type check for functions and function pointers to allow void return type. This bug was exposed by Eli Friedman's commit to clang r188324. Anywhere this version of clang ships, this libc++ fix must follow. However this fix is compatible with previous clangs, and so this libc++ doesn't need to wait for this clang.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@188413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f76450ee9
commit
de8fc6b2b1
@ -2928,12 +2928,22 @@ struct __check_complete<_Rp (*)(_Param...)>
|
||||
{
|
||||
};
|
||||
|
||||
template <class ..._Param>
|
||||
struct __check_complete<void (*)(_Param...)>
|
||||
{
|
||||
};
|
||||
|
||||
template <class _Rp, class ..._Param>
|
||||
struct __check_complete<_Rp (_Param...)>
|
||||
: private __check_complete<_Rp>
|
||||
{
|
||||
};
|
||||
|
||||
template <class ..._Param>
|
||||
struct __check_complete<void (_Param...)>
|
||||
{
|
||||
};
|
||||
|
||||
template <class _Rp, class _Class, class ..._Param>
|
||||
struct __check_complete<_Rp (_Class::*)(_Param...)>
|
||||
: private __check_complete<_Class>
|
||||
|
Loading…
Reference in New Issue
Block a user