[LLVMbugs] [Bug 20342] New: clang-cl: Errors compiling MSVC14's <type_traits>

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 17 07:25:44 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20342

            Bug ID: 20342
           Summary: clang-cl: Errors compiling MSVC14's <type_traits>
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: marci_r at web.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I'm using MSVC14 CTP2 and clang-cl r212716.

I get the following 4 compile errors in <type_traits>:

error : use of undeclared identifier '__vectorcall'
in macro
#define _EMIT_VECTORCALL(FUNC, CONST_OPT, CV_OPT) \
    FUNC(__vectorcall, CONST_OPT, CV_OPT)

error : '_Types' does not refer to a value
in macro
#define _IS_FUNPTR(CALL_OPT, X1) \
template<class _Ret, \
    class... _Types> \
    struct _Is_funptr<_Ret (CALL_OPT *)(_Types...)> \
        : true_type \
    {    /* base class for function pointer predicates */ \
    };

error : '_Types' does not refer to a value
in macro
#define _IS_MEMFUNPTR(CALL_OPT, X1, CV_OPT) \
template<class _Ret, \
    class _Arg0, \
    class... _Types> \
    struct _Is_memfunptr<_Ret (CALL_OPT _Arg0::*)(_Types...) CV_OPT> \
        : true_type \
    {    /* base class for member function pointer predicates */ \
    };

error : '_Mfargs' does not refer to a value
in macro
#define _RESULT_OF_PMF(CALL_OPT, CONST_OPT, CV_OPT) \
template<class _Ret, \
    class _Ty, \
    class... _Mfargs, \
    class _Obj, \
    class... _Args> \
    struct _Result_of<_Ret (CALL_OPT _Ty::* CONST_OPT)(_Mfargs...) CV_OPT, \
        _Obj, _Args...> \
    {    /* template to determine result of call operation */ \
        /* on pointer to member function */ \
    typedef _Ret type; \
    };

The marcos are used in
_NON_MEMBER_CALL(_IS_FUNPTR, )
_MEMBER_CALL_CV(_IS_MEMFUNPTR, )
_MEMBER_CALL_CONST_CV(_RESULT_OF_PMF)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140717/f97202d6/attachment.html>


More information about the llvm-bugs mailing list