title: Clang on Cygwin with C++11
body: <p>I installed Clang on Cygwin and I try to compile this code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  int main() {
    std::cout &lt;&lt; "hello world!" &lt;&lt; std::endl;
    return 0;
  }
  </code></pre>
  
  <p>That works fine if I do <code>clang++ file.cpp</code>. It does not work if I do <code>clang++ file.cpp -std=c++11</code>. I get errors from standard headers like this:</p>
  
  <pre><code>In file included from file.cpp:1:
  In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:39:
  In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ostream:39:
  In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ios:39:
  In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/exception:150:
  /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/exception_ptr.h:132:13: error:
        unknown type name 'type_info'
        const type_info*
  </code></pre>
  
  <p>Does Cygwin Clang just not work with C++11 turned on, or is there something I can do to get around this?</p>