forked from OSchip/llvm-project
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.
llvm-svn: 188413
This commit is contained in:
parent
9d31d6f329
commit
113f13d2a5
|
@ -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