<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: error compiling VC++ type_traits header"
   href="http://llvm.org/bugs/show_bug.cgi?id=17926">17926</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl: error compiling VC++ type_traits header
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>unassignedbugs@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 the Windows snapshot from trunk r194000. Using the LLVM-vs2013
toolset, I cannot compile the type_traits header, which is unfortunately
included indirectly throughout the C++ standard library.

The problematic code looks like this:

template<class _Ty,
    class... _Args>
    struct is_constructible
        : _Cat_base<_IS_CONSTRUCTIBLE(_Ty, _Args...)>
    {    // determine whether _Ty(_Args...) is constructible
    };

with

  #define _IS_CONSTRUCTIBLE \
    __is_constructible

I get the following compile errors:

In file included from \Microsoft Visual Studio 12.0\VC\include\string:6:
In file included from \Microsoft Visual Studio 12.0\VC\include\iterator:6:
In file included from \Microsoft Visual Studio 12.0\VC\include\istream:6:
In file included from \Microsoft Visual Studio 12.0\VC\include\ostream:6:
In file included from \Microsoft Visual Studio 12.0\VC\include\ios:6:
In file included from \Microsoft Visual Studio 12.0\VC\include\xlocnum:10:
In file included from \Microsoft Visual Studio 12.0\VC\include\streambuf:6:
In file included from \Microsoft Visual Studio 12.0\VC\include\xiosbase:6:
In file included from \Microsoft Visual Studio 12.0\VC\include\xlocale:8:
In file included from \Microsoft Visual Studio 12.0\VC\include\stdexcept:7:
In file included from \Microsoft Visual Studio 12.0\VC\include\xstring:6:
In file included from \Microsoft Visual Studio 12.0\VC\include\xmemory0:9:
In file included from \Microsoft Visual Studio 12.0\VC\include\xutility:8:
In file included from \Microsoft Visual Studio 12.0\VC\include\utility:8:
\Microsoft Visual Studio 12.0\VC\include\type_traits(620,32): error : '_Ty'
does not refer to a value
                  : _Cat_base<_IS_CONSTRUCTIBLE(_Ty, _Args...)>
                                                ^
\Microsoft Visual Studio 12.0\VC\include\type_traits(617,15) :  note: declared
here
  template<class _Ty,
                 ^
\Microsoft Visual Studio 12.0\VC\include\type_traits(621,1): error : expected
class name
          {       // determine whether _Ty(_Args...) is constructible
          ^

is_constructible is not used anywhere in the utility header.</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>