Clang Compatible STL on Windows

Hi,

Is there a version of MinGW with a compatible STL for Clang? Thus far I’ve had no luck with Clang parsing header files such as and . The following source

#include

using namespace std;

int main()
{
vector k;
return 0;
}

generates the following errors using the most recent svn and MinGW 5.1.6.

In file included from a.cpp:1:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/vector:66:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/stl_algobase.h:67:
Y:\MinGW-5.1.6\include\c++\3.4.5/cstdlib(175) : error: no member named ‘atoll’ in the global namespace
using ::atoll;
~~^
Y:\MinGW-5.1.6\include\c++\3.4.5/cstdlib(195) : error: no member named ‘atoll’ in namespace ‘__gnu_cxx’
using __gnu_cxx::atoll;

In file included from a.cpp:1:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/vector:66:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/stl_algobase.h:70:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/iosfwd:49:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/postypes.h:45:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar:50:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/ctime:50:
Y:\MinGW-5.1.6\include/time.h(187) : error: unknown type name '__MINGW_IMPORT'
__MINGW_IMPORT char *tzname[2];
^
Y:\MinGW-5.1.6\include/time.h(187) : error: expected unqualified-id
__MINGW_IMPORT char *tzname[2];
^
In file included from a.cpp:1:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/vector:66:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/stl_algobase.h:70:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/iosfwd:49:
In file included from Y:\MinGW-5.1.6\include\c++\3.4.5/bits/postypes.h:45:
Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(146) : error: no member named 'fgetws' in the global namespace
using ::fgetws;
~~^
Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(148) : error: no member named 'fputws' in the global namespace
using ::fputws;
~~^
Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(152) : error: no member named 'getwc' in the global namespace
using ::getwc;
~~^
Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(153) : error: no member named 'getwchar' in the global namespace
using ::getwchar;
~~^
Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(158) : error: no member named 'putwc' in the global namespace
using ::putwc;
~~^
Y:\MinGW-5.1.6\include\c++\3.4.5/cwchar(159) : error: no member named 'putwchar' in the global namespace
using ::putwchar;
~~^
10 errors generated.

Thanks,
Sam

Actually, this looks very similar to Bug 5172: http://llvm.org/bugs/show_bug.cgi?id=5172.