<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang-cl: Errors compiling MSVC14's <type_traits>"
   href="http://llvm.org/bugs/show_bug.cgi?id=20342">20342</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl: Errors compiling MSVC14's <type_traits>
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>marci_r@web.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>