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

            Bug ID: 17926
           Summary: clang-cl: error compiling VC++ type_traits header
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to