title: error compiling c++11 program with clang on windows
body: <p>I have built clang 3.2 on windows and was trying to build a simple hello world program. But I get a lots of errors like the one seen below.</p>
  
  <pre><code>d:\Marius\xyz&gt;clang++ -stdlib=libc++ -std=c++11 -Wall xyz.cpp -o xyz.exe
  clang++: warning: argument unused during compilation: '-stdlib=libc++'
  In file included from xyz.cpp:12:
  In file included from ./stdafx.h:18:
  In file included from C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\algorithm:6:
  In file included from C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xmemory:6:
  In file included from C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xmemory0:9:
  In file included from C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xutility:8:
  In file included from C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\utility:8:
  C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\type_traits:1072:
  33: error:
    '_Ty' does not refer to a value
              _HAS_TRIVIAL_MOVE_CONSTRUCTOR(_Ty)
                                            ^
  
  ...
  
  C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xstddef:540:50: note:
        expanded from macro '_VARIADIC_EXPAND_4'
  #define _VARIADIC_EXPAND_4(FUNC, X1, X2, X3, X4) \
                                                   ^
  C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xrefwrap:222:22:note:
        expanded from macro '_CLASS_RESULT_OF_PMF_OPT_0X'
                          __thiscall, X2, X3, X4)
                                            ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  20 errors generated.
  </code></pre>
  
  <p>I get lots of errors like that, coming from VC++ 2012 headers. Is it possible at all to build C++11 code with clang++ on Windows? Do I have to provide additional command switches?</p>