[LLVMbugs] [Bug 17926] New: clang-cl: error compiling VC++ type_traits header
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Nov 14 07:34:43 PST 2013
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: unassignedbugs at nondot.org
Reporter: marci_r at web.de
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131114/60861b57/attachment.html>
More information about the llvm-bugs
mailing list